Table of Contents

Method BlendLinear

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

BlendLinear(InputArray, InputArray, InputArray, InputArray, OutputArray)

Performs linear blending of two images: dst(i,j) = weights1(i,j)*src1(i,j) + weights2(i,j)*src2(i,j)

public static void BlendLinear(InputArray src1, InputArray src2, InputArray weights1, InputArray weights2, OutputArray dst)

Parameters

src1 InputArray

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

src2 InputArray

It has the same type and size as src1.

weights1 InputArray

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

weights2 InputArray

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

dst OutputArray

It is created if it does not have the same size and type with src1.