ComfyUI Node
cv2.warpPolar
Raw wrapper of cv2.warpPolar(src, dsize, center, maxRadius, flags). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.warpPolar
- src
- dsize
- center
- result
◄maxRadius0.0000►
◄flagsINTER_LINEAR►
Categoryimage/CV/low-level/cv2 W
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| src | COMFY_MATCHTYPE_V3 | Source image. The image output(s) echo this input's format. A LATENT link is processed in latent space: frame 0 becomes a float32 [H,W,C] array (any channel count), values untouched. Arithmetic ops (add, multiply, etc.) also accept a full LATENT batch ({samples: [B,C,H,W]}) — the whole batch flows through when both inputs have the same batch size. 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. | |
| dsize | CV_TUPLE | 0,0 | The destination image size (see description for valid options). One value with 2 components (w, h) - it travels as a whole, so it cannot arrive half-connected. Wire it from 'CV Tuple' or type the components in place. |
| center | CV_TUPLE | 0,0 | The transformation center. One value with 2 components (x, y) - it travels as a whole, so it cannot arrive half-connected. Wire it from 'CV Tuple' or type the components in place. |
| maxRadius | FLOAT | 0.0000-1e+38–1e+38 | The radius of the bounding circle to transform. It determines the inverse magnitude scale parameter too. |
| flags | STRING | INTER_LINEAR | A combination of interpolation methods, #InterpolationFlags + #WarpPolarMode. - Add #WARP_POLAR_LINEAR to select linear polar mapping (default) - Add #WARP_POLAR_LOG to select semilog polar mapping - Add #WARP_INVERSE_MAP for reverse mapping. cv2.warpPolar flags: one of INTER_LINEAR, INTER_NEAREST, INTER_CUBIC, INTER_LANCZOS4 plus any of WARP_POLAR_LOG, WARP_INVERSE_MAP, WARP_FILL_OUTLIERS, pipe-joined (e.g. "INTER_LINEAR | WARP_POLAR_LOG"). In the UI this renders as a dropdown with one toggle per flag. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | COMFY_MATCHTYPE_V3 | Echoes the 'src' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY. |