Equirectangular to Perspective:
The Equirectangular to Perspective node is designed to transform equirectangular images into perspective views, allowing you to extract specific sections of a 360-degree image as if viewed through a virtual camera. This transformation is particularly useful for creating immersive experiences or focusing on particular areas of a panoramic image. By adjusting the field of view and orientation, you can simulate different camera angles and perspectives, making it a powerful tool for AI artists looking to explore and manipulate 360-degree imagery. The node leverages advanced mathematical transformations to ensure that the perspective view maintains the correct proportions and visual fidelity, providing a seamless and realistic representation of the selected area.
Equirectangular to Perspective Input Parameters:
e_img
This parameter represents the input equirectangular image that you wish to transform. It should be provided as an image tensor, and it serves as the source from which the perspective view will be extracted. The image must have four dimensions, typically representing batch size, channels, height, and width.
fov_deg_h
The horizontal field of view in degrees. This parameter determines the width of the perspective view in terms of the angle covered. A larger value results in a wider view, while a smaller value narrows the view. The default value is 90.0 degrees, and it can be adjusted to suit your specific needs.
fov_deg_v
The vertical field of view in degrees. Similar to the horizontal field of view, this parameter controls the height of the perspective view. Adjusting this value allows you to capture more or less of the vertical space in the image. The default is 90.0 degrees.
h_deg
This parameter specifies the horizontal rotation angle in degrees. It allows you to rotate the perspective view horizontally around the center of the equirectangular image. The default value is 0.0 degrees, and it can be adjusted to focus on different parts of the image.
v_deg
The vertical rotation angle in degrees. This parameter enables vertical rotation of the perspective view, allowing you to tilt the view up or down. The default value is 0.0 degrees, providing a straight-on view unless adjusted.
out_h
The output height of the perspective image in pixels. This parameter defines the vertical resolution of the resulting perspective view. The default value is 512 pixels, but it can be increased or decreased depending on the desired level of detail.
out_w
The output width of the perspective image in pixels. Similar to the output height, this parameter sets the horizontal resolution of the perspective view. The default is 512 pixels, and it can be modified to achieve the desired aspect ratio and detail.
in_rot_deg
This parameter specifies the in-plane rotation angle in degrees. It allows you to rotate the perspective view around its center, providing additional control over the orientation of the output image. The default value is 0.0 degrees.
padding_mode
The padding mode determines how the areas outside the boundaries of the equirectangular image are handled during the transformation. Options include "bilinear", "bicubic", and "nearest", with "bilinear" as the default. Each mode offers a different interpolation method, affecting the smoothness and quality of the edges in the perspective view.
Equirectangular to Perspective Output Parameters:
Perspective Image
The output is a perspective image extracted from the input equirectangular image. This image represents the specified field of view and orientation, providing a focused view of the selected area. The perspective image maintains the visual fidelity of the original, allowing for realistic and immersive representations of the scene.
Equirectangular to Perspective Usage Tips:
- Experiment with different field of view settings to capture the desired amount of detail and context in your perspective view.
- Use the horizontal and vertical rotation parameters to explore different angles and areas of the equirectangular image, simulating various camera positions.
- Adjust the output resolution to balance between image quality and processing time, especially when working with high-resolution equirectangular images.
Equirectangular to Perspective Common Errors and Solutions:
e_img should have 4 dimensions, got <actual_dim>``
- Explanation: This error occurs when the input image does not have the required four dimensions, which are necessary for processing.
- Solution: Ensure that your input image is formatted correctly with dimensions representing batch size, channels, height, and width.
Invalid padding mode selected
- Explanation: This error indicates that an unsupported padding mode was chosen.
- Solution: Verify that the padding mode is set to one of the supported options: "bilinear", "bicubic", or "nearest".
