http://www.emgu.com
Reduces GpuMat to a vector by treating the GpuMat 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.GPU
Assembly: Emgu.CV.GPU (in Emgu.CV.GPU.dll) Version: 2.4.2.1777 (2.4.2.1777)

Syntax

C#
public static void Reduce(
	IntPtr mtx,
	IntPtr vec,
	REDUCE_DIMENSION dim,
	REDUCE_TYPE reduceOp,
	IntPtr stream
)
Visual Basic
Public Shared Sub Reduce ( _
	mtx As IntPtr, _
	vec As IntPtr, _
	dim As REDUCE_DIMENSION, _
	reduceOp As REDUCE_TYPE, _
	stream As IntPtr _
)
Visual C++
public:
static void Reduce(
	IntPtr mtx, 
	IntPtr vec, 
	REDUCE_DIMENSION dim, 
	REDUCE_TYPE reduceOp, 
	IntPtr stream
)

Parameters

mtx
Type: System..::..IntPtr
The input GpuMat
vec
Type: System..::..IntPtr
The destination GpuMat. Must be preallocated 1 x n matrix and have the same number of channels as the input GpuMat
dim
Type: Emgu.CV.CvEnum..::..REDUCE_DIMENSION
The dimension index along which the matrix is reduce.
reduceOp
Type: Emgu.CV.CvEnum..::..REDUCE_TYPE
The reduction operation type
stream
Type: System..::..IntPtr
Use a Stream to call the function asynchronously (non-blocking) or IntPtr.Zero to call the function synchronously (blocking).

See Also