ComfyUI Node
cv2.getRectSubPix
Raw wrapper of cv2.getRectSubPix(image, patchSize, center, patchType?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.getRectSubPix
- image
- patchSize
- center
- result
◄patchTypesame as input►
Categoryimage/CV/low-level/cv2 G
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | COMFY_MATCHTYPE_V3 | Source image. The image output(s) echo this input's format. 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. | |
| patchSize | CV_TUPLE | 0,0 | Size of the extracted patch. 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 | Floating point coordinates of the center of the extracted rectangle within the source image. The center must be inside the image. 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. |
| patchTypeopt | COMBO | same as input | Depth of the extracted pixels. By default, they have the same depth as src . |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | COMFY_MATCHTYPE_V3 | Echoes the 'image' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY. |