ComfyUI Node
cv2.ximgproc.computeBadPixelPercent
Raw wrapper of cv2.ximgproc.computeBadPixelPercent(GT, src, ROI, thresh?). Parameters marked '?' are optional; blank means OpenCV default. From the opencv-contrib 'ximgproc' module. See the OpenCV documentation for details.
cv2.ximgproc.computeBadPixelPercent
- GT
- src
- float
◄ROI_x0►
◄ROI_y0►
◄ROI_w0►
◄ROI_h0►
◄thresh24►
Categoryimage/CV/low-level/ximgproc
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| GT | NPARRAY,IMAGE,MASK | ground truth disparity map 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. | |
| src | NPARRAY,IMAGE,MASK | disparity map to evaluate 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. | |
| ROI_x | INT | 0-2147483648–2147483647 | Rectangle top-left corner X in pixels. |
| ROI_y | INT | 0-2147483648–2147483647 | Rectangle top-left corner Y in pixels. |
| ROI_w | INT | 00–2147483647 | Rectangle width in pixels (>= 0). |
| ROI_h | INT | 00–2147483647 | Rectangle height in pixels (>= 0). |
| threshopt | INT | 24-2147483648–2147483647 | threshold used to determine "bad" pixels @result returns mean square error between GT and src Preset to the OpenCV default (24). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| float | FLOAT | — |