gapi_divRC
import { gapi_divRC } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Divides scalar by matrix.
The function divRC divides given scalar by each element of matrix src and keep the division result in new matrix of the same size and type as src:
\texttt{dst(I) = saturate(divident*scale/src(I))}
When src(I) is zero, dst(I) will also be zero. Different channels of multi-channel matrices are processed independently. The matrices can be single or multi channel. Output matrix must have 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.math.divRC"
See: add, sub, div, addWeighted
gapi_divRC(divident: GScalar, src: GMat, scale: number, ddepth: number): GMat;2 available overloads
gapi_divRC(divident: GScalar, src: GMat, scale: number): GMat;gapi_divRC(divident: GScalar, src: GMat, scale: number, ddepth: number): GMat;dividentnumber to be divided.
srcinput matrix.
scalescale factor
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.