ComfyUI Node
cv2.getValidDisparityROI
Raw wrapper of cv2.getValidDisparityROI(roi1, roi2, minDisparity, numberOfDisparities, blockSize). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.getValidDisparityROI
- roi
◄roi1_x0►
◄roi1_y0►
◄roi1_w0►
◄roi1_h0►
◄roi2_x0►
◄roi2_y0►
◄roi2_w0►
◄roi2_h0►
◄minDisparity0►
◄numberOfDisparities0►
◄blockSize0►
Categoryimage/CV/low-level/cv2 G
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| roi1_x | INT | 0-2147483648–2147483647 | Rectangle top-left corner X in pixels. |
| roi1_y | INT | 0-2147483648–2147483647 | Rectangle top-left corner Y in pixels. |
| roi1_w | INT | 00–2147483647 | Rectangle width in pixels (>= 0). |
| roi1_h | INT | 00–2147483647 | Rectangle height in pixels (>= 0). |
| roi2_x | INT | 0-2147483648–2147483647 | Rectangle top-left corner X in pixels. |
| roi2_y | INT | 0-2147483648–2147483647 | Rectangle top-left corner Y in pixels. |
| roi2_w | INT | 00–2147483647 | Rectangle width in pixels (>= 0). |
| roi2_h | INT | 00–2147483647 | Rectangle height in pixels (>= 0). |
| minDisparity | INT | 0-2147483648–2147483647 | - - - |
| numberOfDisparities | INT | 0-2147483648–2147483647 | - - - |
| blockSize | INT | 0-2147483648–2147483647 | - - - |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| roi | BOUNDING_BOX | - - - A cv2 Rect as core BOUNDING_BOX data ({x, y, width, height}, nested one group per frame) - feed 'Crop By Bounding Boxes', 'Draw BBoxes', or 'CV Split Tuple' for x/y/w/h. |