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

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.setIdentity
  • mtx
  • nparray
s
Categoryimage/CV/low-level/cv2 S

Inputs (2)

NameTypeDefaultDescription
mtxNPARRAYmatrix to initialize (not necessarily square). A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
soptSTRINGvalue 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)

NameTypeDescription
nparrayNPARRAY