Skip to content

blendLinear

Image processingfunctionOpenCV 5.0.0
import { blendLinear } from '@banou/opencv-wasm'

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

ARGUMENTSsrc1, src2, weights1, weights2
FUNCTIONblendLinear
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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

It has a type of CV_8UC(n) or CV_32FC(n), where n is a positive integer.

src2

It has the same type and size as src1.

weights1

It has a type of CV_32FC1 and the same size with src1.

weights2

It has a type of CV_32FC1 and the same size with src1.

dst

Output 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.