Nodes/comfyui_cv/CV Relative Identity Map
ComfyUI Node

CV Relative Identity Map

Like 'CV Identity Map' but emits (0, 0) instead of (x, y) - the starting point for a map chain that will be sampled with WARP_RELATIVE_MAP (where cv2.remap interprets the maps as relative offsets dx, dy instead of absolute source coordinates). Feed it through the same distortion nodes (wave, displacement, flow...); each adds offsets. Finish with cv2_remap(flags=INTER_LINEAR | WARP_RELATIVE_MAP).

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Relative Identity Map
  • image
  • map_x
  • map_y
Categoryimage/CV/remap

Inputs (1)

NameTypeDefaultDescription
imageNPARRAY,IMAGE,MASKOnly its width/height are used. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.

Outputs (2)

NameTypeDescription
map_xNPARRAYHxW float32 zero-filled map (relative dx).
map_yNPARRAYHxW float32 zero-filled map (relative dy).