Skip to content

gapi_mulC

gapifunctionOpenCV 5.0.0
import { gapi_mulC } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSsrc, multiplier, ddepth
FUNCTIONgapi_mulC
RETURN TYPEGMat
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
src

input matrix.

multiplier

factor to be multiplied.

ddepth

optional depth of the output matrix. If -1, the depth of output matrix will be the same as input matrix depth.

Returns

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.