Nodes/comfyui_cv/cv2.ximgproc.computeBadPixelPercent
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.ximgproc.computeBadPixelPercent
  • GT
  • src
  • float
ROI_x0
ROI_y0
ROI_w0
ROI_h0
thresh24
Categoryimage/CV/low-level/ximgproc

Inputs (7)

NameTypeDefaultDescription
GTNPARRAY,IMAGE,MASKground 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.
srcNPARRAY,IMAGE,MASKdisparity 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_xINT0-2147483648–2147483647Rectangle top-left corner X in pixels.
ROI_yINT0-2147483648–2147483647Rectangle top-left corner Y in pixels.
ROI_wINT00–2147483647Rectangle width in pixels (>= 0).
ROI_hINT00–2147483647Rectangle height in pixels (>= 0).
threshoptINT24-2147483648–2147483647threshold used to determine "bad" pixels @result returns mean square error between GT and src Preset to the OpenCV default (24).

Outputs (1)

NameTypeDescription
floatFLOAT