Nodes/ComfyUI-JH-PixelPro/Lens Distortion Corrector
ComfyUI Node

Lens Distortion Corrector

A ComfyUI node in ComfyUI-JH-PixelPro/geometry with 8 inputs and 1 output.

By jetthuangai·Created 4 months ago·Updated 3 months ago· 5
Lens Distortion Corrector
  • image
  • image_rectified
presetno_op_identity
directioninverse
k10.000
k20.000
k30.000
p10.0000
p20.0000
CategoryComfyUI-JH-PixelPro/geometry

Inputs (8)

NameTypeDefaultDescription
imageIMAGE
presetCOMBOno_op_identityLens preset — auto-fills k1..p2 with calibrated approximations. canon_24mm_wide: barrel correction for wide portrait lenses. sony_85mm_tele: mild pincushion correction for short-tele. gopro_fisheye: aggressive barrel removal for action cams. no_op_identity: pass-through (default, safe). Choose 'custom' to use the 5 widget values below verbatim.
directionCOMBOinverseinverse = rectify a distorted source (default; the retouch use case). forward = simulate distortion on a clean source (creative effect).
k1FLOAT0.000-1–1Radial coefficient k1 (Brown-Conrady). Used only when preset = custom.
k2FLOAT0.000-1–1Radial coefficient k2. Used only when preset = custom.
k3FLOAT0.000-1–1Radial coefficient k3. Used only when preset = custom.
p1FLOAT0.0000-0.1–0.1Tangential coefficient p1. Used only when preset = custom.
p2FLOAT0.0000-0.1–0.1Tangential coefficient p2. Used only when preset = custom.

Outputs (1)

NameTypeDescription
image_rectifiedIMAGE