Nodes/comfyui_cv/cv2.minMaxLoc
ComfyUI Node

cv2.minMaxLoc

Raw wrapper of cv2.minMaxLoc(src, mask?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.minMaxLoc
  • src
  • mask
  • min
  • max
  • min_loc
  • max_loc
Categoryimage/CV/low-level/cv2 M

Inputs (2)

NameTypeDefaultDescription
srcNPARRAY,IMAGE,MASKinput single-channel array. 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.
maskoptNPARRAY,IMAGE,MASKoptional mask used to select a sub-array of type CV_8U, CV_8S or CV_Bool. 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.

Outputs (4)

NameTypeDescription
minFLOAT
maxFLOAT
min_locCV_TUPLEoptional mask used to select a sub-array of type CV_8U, CV_8S or CV_Bool. Pixel coordinates (x, y) as ONE composite value - wire it straight into any cv2 point input (center, seedPoint, pt1/pt2) or into 'CV Split Tuple' for the separate numbers.
max_locCV_TUPLEoptional mask used to select a sub-array of type CV_8U, CV_8S or CV_Bool. Pixel coordinates (x, y) as ONE composite value - wire it straight into any cv2 point input (center, seedPoint, pt1/pt2) or into 'CV Split Tuple' for the separate numbers.