Nodes/comfyui_cv/CV Cylinder Map
ComfyUI Node

CV Cylinder Map

Cylindrical projection: 'wrap' renders the image as if glued onto a cylinder seen from its axis - the classic panorama pre-warp that compresses the side edges so rotated shots line up for stitching; 'unwrap' is its inverse (stretches the sides, flattens an already-cylindrical image). field_of_view sets the focal length: f = (extent / 2) / tan(fov / 2).

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Cylinder Map
  • map_x
  • map_y
  • map_x
  • map_y
field_of_view90
directionwrap around the cylinder (pano pre-warp)
axisvertical axis (curves the left/right edges)
Categoryimage/CV/remap

Inputs (5)

NameTypeDefaultDescription
map_xNPARRAYIncoming source-x coordinate map to distort. Start the chain with 'CV Identity Map'; further remap nodes compose onto it.
map_yNPARRAYIncoming source-y coordinate map (must share map_x's shape - both come from the same chain).
field_of_viewFLOAT9010–160Horizontal (or vertical, see axis) field of view in degrees; wider = stronger curvature.
directionCOMBOwrap around the cylinder (pano pre-warp)wrap curves a flat image onto a cylinder (panorama pre-warp); unwrap is the inverse (flattens it back).
axisoptCOMBOvertical axis (curves the left/right edges)Cylinder orientation: vertical curves the left/right edges, horizontal curves the top/bottom edges.

Outputs (2)

NameTypeDescription
map_xNPARRAY
map_yNPARRAY