gapi_mulC
import { gapi_mulC } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Multiplies matrix by scalar.
The function mulC multiplies each element of matrix src by given scalar value:
\texttt{dst} (I)= \texttt{saturate} ( \texttt{src1} (I) \cdot \texttt{multiplier} )
The matrices can be single or multi channel. Output matrix must have the same size as src.
Supported matrix data types are CV_8UC1, CV_8UC3, CV_16UC1, CV_16SC1, CV_32FC1.
Note: Function textual ID is "org.opencv.core.math.mulC"
See: add, sub, div, addWeighted
gapi_mulC(src: GMat, multiplier: number, ddepth: number): GMat;2 available overloads
gapi_mulC(src: GMat, multiplier: number): GMat;gapi_mulC(src: GMat, multiplier: number, ddepth: number): GMat;srcinput matrix.
multiplierfactor to be multiplied.
ddepthoptional depth of the output matrix. If -1, the depth of output matrix will be the same as input matrix depth.
The GMat result. Release returned native handles with using or delete(), including handles nested in results.
These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.