ComfyUI > Nodes > ComfyUI Fisheye Effects Nodes > Remove Fisheye Effect

ComfyUI Node: Remove Fisheye Effect

Class Name

Defisheye

Category
image/processing
Author
Kidev (Account age: 5259days)
Extension
ComfyUI Fisheye Effects Nodes
Latest Updated
2025-04-03
Github Stars
0.02K

How to Install ComfyUI Fisheye Effects Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI Fisheye Effects Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Fisheye Effects Nodes 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

Remove Fisheye Effect Description

Corrects fisheye lens distortion, restoring straight lines using various mathematical models.

Remove Fisheye Effect:

The Defisheye node is designed to correct the distortion caused by fisheye lenses, which are known for their wide-angle views but often result in curved lines and a distorted perspective. This node effectively removes the fisheye effect from images, restoring straight lines and a more natural appearance. It achieves this by mapping the distorted image back to a rectilinear projection, using various mathematical models such as equidistant, equisolid, orthographic, and stereographic mappings. This correction is particularly beneficial for photographers and videographers who want to achieve a more realistic representation of their scenes, as well as for AI artists who need to preprocess images for further creative manipulation. By providing a more accurate depiction of the original scene, the Defisheye node enhances the quality and usability of images captured with fisheye lenses.

Remove Fisheye Effect Input Parameters:

image

The image parameter represents the input image that you want to process to remove the fisheye effect. This image should be in a format compatible with the node's processing capabilities, typically a tensor format that can be converted to a NumPy array for manipulation.

mapping

The mapping parameter determines the mathematical model used to correct the fisheye distortion. Options include "equidistant," "equisolid," "orthographic," and "stereographic." Each model offers a different approach to remapping the image, affecting the final appearance of the corrected image. Choosing the right mapping depends on the specific characteristics of the fisheye lens used.

format

The format parameter specifies the shape of the fisheye image, either "circular" or "fullframe." This affects how the node calculates the dimensions for remapping the image, ensuring that the correction is applied accurately based on the image's original format.

fov

The fov (field of view) parameter indicates the angle of view captured by the fisheye lens. It is crucial for determining the extent of distortion in the image and plays a significant role in the correction process. The value is typically expressed in degrees.

pfov

The pfov (projected field of view) parameter represents the desired field of view after correction. It helps in adjusting the level of zoom and scaling applied during the defisheye process, ensuring that the output image meets the user's expectations.

entire_image

The entire_image parameter is a boolean that indicates whether the entire image should be considered during the correction process. If set to true, the node calculates a zoom factor to ensure that the entire image is included in the corrected output, which can be useful for maintaining the original composition.

wcenter

The wcenter parameter specifies the horizontal center of the fisheye effect in the image, expressed as a fraction of the image width. This helps in accurately mapping the distortion correction to the correct part of the image.

hcenter

The hcenter parameter specifies the vertical center of the fisheye effect in the image, expressed as a fraction of the image height. Like wcenter, it ensures that the correction is applied accurately to the intended area of the image.

Remove Fisheye Effect Output Parameters:

corrected_image

The corrected_image parameter is the output of the Defisheye node, representing the image after the fisheye effect has been removed. This image is typically returned in a format suitable for further processing or display, with straightened lines and a more natural perspective, making it ideal for use in various creative and professional applications.

Remove Fisheye Effect Usage Tips:

  • Experiment with different mapping options to find the one that best suits the characteristics of your fisheye lens and the desired output.
  • Adjust the fov and pfov parameters to control the level of correction and zoom, ensuring that the output image meets your specific needs.
  • Use the entire_image parameter to maintain the original composition of the image, especially if the fisheye effect covers the entire frame.

Remove Fisheye Effect Common Errors and Solutions:

Image format not supported

  • Explanation: The input image is not in a compatible format for processing.
  • Solution: Ensure that the image is converted to a tensor format that can be processed by the node.

Invalid mapping option

  • Explanation: The mapping parameter is set to an unsupported value.
  • Solution: Choose one of the supported mapping options: "equidistant," "equisolid," "orthographic," or "stereographic."

Field of view out of range

  • Explanation: The fov or pfov parameter is set to a value that is not realistic for the lens used.
  • Solution: Verify the field of view values and adjust them to match the specifications of your fisheye lens.

Remove Fisheye Effect Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Fisheye Effects Nodes
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.