http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Reduces matrix to a vector by treating the matrix rows/columns as a set of 1D vectors and performing the specified operation on the vectors until a single row/column is obtained.
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public static void cvReduce( IntPtr src, IntPtr dst, REDUCE_DIMENSION dim, REDUCE_TYPE type ) |
Visual Basic |
---|
Public Shared Sub cvReduce ( _ src As IntPtr, _ dst As IntPtr, _ dim As REDUCE_DIMENSION, _ type As REDUCE_TYPE _ ) |
Visual C++ |
---|
public: static void cvReduce( IntPtr src, IntPtr dst, REDUCE_DIMENSION dim, REDUCE_TYPE type ) |
Parameters
- src
- Type: System..::..IntPtr
The input matrix
- dst
- Type: System..::..IntPtr
The output single-row/single-column vector that accumulates somehow all the matrix rows/columns
- dim
- Type: Emgu.CV.CvEnum..::..REDUCE_DIMENSION
The dimension index along which the matrix is reduce.
- type
- Type: Emgu.CV.CvEnum..::..REDUCE_TYPE
The reduction operation type
Remarks
The function can be used to compute horizontal and vertical projections of an raster image.
In case of CV_REDUCE_SUM and CV_REDUCE_AVG the output may have a larger element bit-depth to preserve accuracy.
And multi-channel arrays are also supported in these two reduction modes