ComfyUI Node
cv2.norm (1/2)
Raw wrapper of cv2.norm(src1, normType?, mask?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.norm (1/2)
- src1
- mask
- float
◄normTypeNORM_L2►
Categoryimage/CV/low-level/cv2 N
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| src1 | NPARRAY,IMAGE,MASK | first input 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. | |
| normTypeopt | COMBO | NORM_L2 | type of the norm (see #NormTypes). |
| maskopt | NPARRAY,IMAGE,MASK | optional operation mask; it must have the same size as src1 and type CV_8UC1, CV_8SC1 or CV_BoolC1. 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 (1)
| Name | Type | Description |
|---|---|---|
| float | FLOAT | — |