OpenCV remap_1
Remap_1 — the same warp, second copy
- src
- map1
- map2
- dst
- nparray
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.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| src | NPARRAY | — | |
| map1 | NPARRAY | — | |
| map2 | NPARRAY | — | |
| interpolation | INT | — | |
| borderMode | INT | — | |
| borderValue | STRING | — | |
| dstopt | NPARRAY | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |