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.
cv2.minMaxLoc
- src
- mask
- min
- max
- min_loc
- max_loc
Categoryimage/CV/low-level/cv2 M
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| src | NPARRAY,IMAGE,MASK | input 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. | |
| maskopt | NPARRAY,IMAGE,MASK | optional 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)
| Name | Type | Description |
|---|---|---|
| min | FLOAT | — |
| max | FLOAT | — |
| min_loc | CV_TUPLE | optional 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_loc | CV_TUPLE | optional 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. |