Nodes/opencv-comfyui/OpenCV remap_1
ComfyUI Node

OpenCV remap_1

Remap_1 — the same warp, second copy

By geroldmeisinger·Created about a year ago·Updated about a year ago· 35
OpenCV remap_1
  • src
  • map1
  • map2
  • dst
  • nparray
interpolation
borderMode
borderValue

remap_1 is the duplicate of remap_0. Same cv2.remap overload, emitted twice by opencv-comfyui's (geroldmeisinger/opencv-comfyui) generator, identical inputs and output. There is nothing here that remap_0 doesn't do, and if your node search keeps offering both, that's the pack's overload numbering, not a feature distinction.

For the record, what both do: arbitrary per-pixel image warping. You feed an NPARRAY src, two float32 maps (map1 = destination→source x-coordinates, map2 = y-coordinates, or one two-channel map1), an interpolation int, a borderMode int, and a borderValue literal for constant borders, and out comes the resampled image. The practical value - lens distortion correction, fisheye removal, camera-calibration undistortion - and the equally practical pain - you have to build those float32 maps yourself, which pure ComfyUI can't easily do - are covered in the remap_0 article. Read that one.

Installing it

The standard pack install: ComfyUI Manager (search "opencv-comfyui"), or

cd ComfyUI/custom_nodes
git clone https://github.com/geroldmeisinger/opencv-comfyui

restart, confirm OpenCV:

pip install opencv-contrib-python

No models, no GPU, no extra dependencies. The one thing I'll add beyond the remap_0 write-up: if you landed on this page first, don't let the twin nodes confuse your workflow - wire up whichever one and treat the other as a ghost copy. The number is not a version.

Categoryimage/OpenCV

Inputs (7)

NameTypeDefaultDescription
srcNPARRAY
map1NPARRAY
map2NPARRAY
interpolationINT
borderModeINT
borderValueSTRING
dstoptNPARRAY

Outputs (1)

NameTypeDescription
nparrayNPARRAY