accumulateProduct
import { accumulateProduct } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Adds the per-element product of two input images to the accumulator image.
The function adds the product of two images or their selected regions to the accumulator dst :
\texttt{dst} (x,y) \leftarrow \texttt{dst} (x,y) + \texttt{src1} (x,y) \cdot \texttt{src2} (x,y) \quad \text{if} \quad \texttt{mask} (x,y) \ne 0
The function supports multi-channel images. Each channel is processed independently.
See: accumulate, accumulateSquare, accumulateWeighted
accumulateProduct(src1: Mat, src2: Mat, dst: Mat, mask: Mat): void;2 available overloads
accumulateProduct(src1: Mat, src2: Mat, dst: Mat): void;accumulateProduct(src1: Mat, src2: Mat, dst: Mat, mask: Mat): void;src1First input image, 1- or 3-channel, 8-bit or 32-bit floating point.
src2Second input image of the same type and the same size as src1 .
dstInput/output value, modified by the native operation. %Accumulator image with the same number of channels as input images, 32-bit or 64-bit floating-point.
maskOptional operation mask.
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.