[This is preliminary documentation and is subject to change.]

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 (in Emgu.CV.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public void Reduce<TOtherDepth>(
	CvArray<TOtherDepth> array1D,
	REDUCE_DIMENSION dim,
	REDUCE_TYPE type
)
where TOtherDepth : new()
Public Sub Reduce(Of TOtherDepth As New) ( _
	array1D As CvArray(Of TOtherDepth), _
	dim As REDUCE_DIMENSION, _
	type As REDUCE_TYPE _
)
public:
generic<typename TOtherDepth>
where TOtherDepth : gcnew()
void Reduce(
	CvArray<TOtherDepth>^ array1D, 
	REDUCE_DIMENSION dim, 
	REDUCE_TYPE type
)

Parameters

array1D
CvArray<(Of <(TOtherDepth>)>)
The destination single-row/single-column vector that accumulates somehow all the matrix rows/columns
dim
REDUCE_DIMENSION
The dimension index along which the matrix is reduce.
type
REDUCE_TYPE
The reduction operation type

Type Parameters

TOtherDepth

[Missing <typeparam name="TOtherDepth"/> documentation for "M:Emgu.CV.CvArray`1.Reduce``1(Emgu.CV.CvArray{``0},Emgu.CV.CvEnum.REDUCE_DIMENSION,Emgu.CV.CvEnum.REDUCE_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

See Also