Nodes/comfyui_cv/cv2.gemm
ComfyUI Node

cv2.gemm

Raw wrapper of cv2.gemm(src1, src2, alpha, src3, beta, flags?). 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.gemm
  • src1
  • src2
  • src3
  • nparray
alpha0.0000
beta0.0000
flagsnone (0)
Categoryimage/CV/low-level/cv2 G

Inputs (6)

NameTypeDefaultDescription
src1NPARRAYfirst multiplied input matrix that could be real(CV_32FC1, CV_64FC1) or complex(CV_32FC2, CV_64FC2). A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
src2NPARRAYsecond multiplied input matrix of the same type as src1. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
alphaFLOAT0.0000-1e+38–1e+38weight of the matrix product.
src3NPARRAYthird optional delta matrix added to the matrix product; it should have the same type as src1 and src2. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
betaFLOAT0.0000-1e+38–1e+38weight of src3.
flagsoptSTRINGnone (0)operation flags (cv::GemmFlags) cv2.gemm flags: one of none (0) plus any of GEMM_1_T, GEMM_2_T, GEMM_3_T, pipe-joined (e.g. "none (0) | GEMM_1_T"). In the UI this renders as a dropdown with one toggle per flag.

Outputs (1)

NameTypeDescription
nparrayNPARRAY