gapi_absDiffC
import { gapi_absDiffC } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Calculates absolute value of matrix elements.
The function abs calculates absolute difference between matrix elements and given scalar value:
\texttt{dst}(I) = \texttt{saturate} (| \texttt{src1}(I) - \texttt{matC}(I)|)
where matC is constructed from given scalar c and has the same sizes and depth as input matrix src.
Output matrix must be of the same size and depth 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.matrixop.absdiffC"
See: min, max
gapi_absDiffC(src: GMat, c: GScalar): GMat;srcinput matrix.
cscalar to be subtracted.
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.