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.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.0.1.0 (2.0.1.0)
Syntax
C# |
---|
public static void cvAddWeighted( IntPtr src1, double alpha, IntPtr src2, double beta, double gamma, IntPtr dst ) |
Visual Basic (Declaration) |
---|
Public Shared Sub cvAddWeighted ( _ src1 As IntPtr, _ alpha As Double, _ src2 As IntPtr, _ beta As Double, _ gamma As Double, _ dst As IntPtr _ ) |
Visual C++ |
---|
public: static void cvAddWeighted( IntPtr src1, double alpha, IntPtr src2, double beta, double gamma, IntPtr dst ) |
Parameters
- src1
- Type: System..::.IntPtr
The first source array.
- alpha
- Type: System..::.Double
Weight of the first array elements.
- src2
- Type: System..::.IntPtr
The second source array.
- beta
- Type: System..::.Double
Weight of the second array elements.
- gamma
- Type: System..::.Double
Scalar, added to each sum.
- dst
- Type: System..::.IntPtr
The destination array.