Click or drag to resize
CvInvokeReduce Method
http://www.emgu.com
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.CV
Assembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.1.0.2282 (3.1.0.2282)
Syntax
public static void Reduce(
	IInputArray src,
	IOutputArray dst,
	ReduceDimension dim = ReduceDimension.Auto,
	ReduceType type = ReduceType.ReduceSum,
	DepthType dtype = DepthType.Default
)

Parameters

src
Type: Emgu.CVIInputArray
The input matrix
dst
Type: Emgu.CVIOutputArray
The output single-row/single-column vector that accumulates somehow all the matrix rows/columns
dim (Optional)
Type: Emgu.CV.CvEnumReduceDimension
The dimension index along which the matrix is reduce.
type (Optional)
Type: Emgu.CV.CvEnumReduceType
The reduction operation type
dtype (Optional)
Type: Emgu.CV.CvEnumDepthType
Optional depth type of the output array
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
See Also