ComfyUI > Nodes > ComfyUI_pytorch360convert > Equirectangular to Perspective

ComfyUI Node: Equirectangular to Perspective

Class Name

Equirectangular to Perspective

Category
pytorch360convert/equirectangular
Author
ProGamerGov (Account age: 4100days)
Extension
ComfyUI_pytorch360convert
Latest Updated
2025-09-22
Github Stars
0.03K

How to Install ComfyUI_pytorch360convert

Install this extension via the ComfyUI Manager by searching for ComfyUI_pytorch360convert
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_pytorch360convert in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Equirectangular to Perspective Description

Transforms equirectangular images into perspective views for immersive, focused 360-degree imagery.

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".

Equirectangular to Perspective Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_pytorch360convert
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Equirectangular to Perspective