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.
cv2.gemm
- src1
- src2
- src3
- nparray
◄alpha0.0000►
◄beta0.0000►
◄flagsnone (0)►
Categoryimage/CV/low-level/cv2 G
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| src1 | NPARRAY | first 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. | |
| src2 | NPARRAY | second multiplied input matrix of the same type as src1. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| alpha | FLOAT | 0.0000-1e+38–1e+38 | weight of the matrix product. |
| src3 | NPARRAY | third 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. | |
| beta | FLOAT | 0.0000-1e+38–1e+38 | weight of src3. |
| flagsopt | STRING | none (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)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |