blendLinear
import { blendLinear } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSsrc1, src2, weights1, weights2
FUNCTIONblendLinear
RETURN TYPEvoid
Performs linear blending of two images:
\texttt{dst}(i,j) = \texttt{weights1}(i,j)*\texttt{src1}(i,j) + \texttt{weights2}(i,j)*\texttt{src2}(i,j)
blendLinear(src1: Mat, src2: Mat, weights1: Mat, weights2: Mat, dst: Mat): void;src1It has a type of CV_8UC(n) or CV_32FC(n), where n is a positive integer.
src2It has the same type and size as src1.
weights1It has a type of CV_32FC1 and the same size with src1.
weights2It has a type of CV_32FC1 and the same size with src1.
dstOutput destination, filled by the native operation. It is created if it does not have the same size and type with src1.
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.