ComfyUI Node
cv2.setIdentity
Raw wrapper of cv2.setIdentity(mtx, s?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.setIdentity
- mtx
- nparray
◄s►
Categoryimage/CV/low-level/cv2 S
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| mtx | NPARRAY | matrix to initialize (not necessarily square). A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| sopt | STRING | value to assign to diagonal elements. cv2 Scalar as a literal, e.g. "(0, 255, 0)" (BGR) or "(0, 255, 0, 64)" (BGRA). A bare number broadcasts to every component, so "255" means (255, 255, 255, 255). Components past the target's channel count are ignored by OpenCV. Leave blank for the OpenCV default. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |