Calculated weighted sum of two arrays as following: dst(I)=src1(I)*alpha+src2(I)*beta+gamma All the arrays must have the same type and the same size (or ROI size)

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void cvAddWeighted(
	IntPtr src1,
	double alpha,
	IntPtr src2,
	double beta,
	double gamma,
	IntPtr dst
)
Public Shared Sub cvAddWeighted ( _
	src1 As IntPtr, _
	alpha As Double, _
	src2 As IntPtr, _
	beta As Double, _
	gamma As Double, _
	dst As IntPtr _
)
public:
static void cvAddWeighted(
	IntPtr src1, 
	double alpha, 
	IntPtr src2, 
	double beta, 
	double gamma, 
	IntPtr dst
)

Parameters

src1
IntPtr
The first source array.
alpha
Double
Weight of the first array elements.
src2
IntPtr
The second source array.
beta
Double
Weight of the second array elements.
gamma
Double
Scalar, added to each sum.
dst
IntPtr
The destination array.

See Also