Cv2Reduce Method OpenCvSharp Class Library
transforms 2D matrix to 1D row or column vector by taking sum, minimum, maximum or mean value over all the rows

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void Reduce(
	InputArray src,
	OutputArray dst,
	ReduceDimension dim,
	ReduceOperation rtype,
	int dtype
)

Parameters

src
Type: OpenCvSharp.CPlusPlusInputArray
The source 2D matrix
dst
Type: OpenCvSharp.CPlusPlusOutputArray
The destination vector. Its size and type is defined by dim and dtype parameters
dim
Type: OpenCvSharpReduceDimension
The dimension index along which the matrix is reduced. 0 means that the matrix is reduced to a single row and 1 means that the matrix is reduced to a single column
rtype
Type: OpenCvSharpReduceOperation

[Missing <param name="rtype"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.Reduce(OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.OutputArray,OpenCvSharp.ReduceDimension,OpenCvSharp.ReduceOperation,System.Int32)"]

dtype
Type: SystemInt32
When it is negative, the destination vector will have the same type as the source matrix, otherwise, its type will be CV_MAKE_TYPE(CV_MAT_DEPTH(dtype), mtx.channels())
See Also

Reference