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.Cuda
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.0.1.3373 (4.0.1.3373)
Syntaxpublic static void Reduce(
IInputArray mtx,
IOutputArray vec,
ReduceDimension dim,
ReduceType reduceOp,
DepthType dType = DepthType.Default,
Stream stream = null
)
Public Shared Sub Reduce (
mtx As IInputArray,
vec As IOutputArray,
dim As ReduceDimension,
reduceOp As ReduceType,
Optional dType As DepthType = DepthType.Default,
Optional stream As Stream = Nothing
)
public:
static void Reduce(
IInputArray^ mtx,
IOutputArray^ vec,
ReduceDimension dim,
ReduceType reduceOp,
DepthType dType = DepthType::Default,
Stream^ stream = nullptr
)
static member Reduce :
mtx : IInputArray *
vec : IOutputArray *
dim : ReduceDimension *
reduceOp : ReduceType *
?dType : DepthType *
?stream : Stream
(* Defaults:
let _dType = defaultArg dType DepthType.Default
let _stream = defaultArg stream null
*)
-> unit
Parameters
- mtx
- Type: Emgu.CVIInputArray
The input GpuMat - vec
- Type: Emgu.CVIOutputArray
Destination vector. Its size and type is defined by dim and dtype parameters - dim
- Type: Emgu.CV.CvEnumReduceDimension
Dimension index along which the matrix is reduced. 0 means that the matrix is reduced to a single row. 1 means that the matrix is reduced to a single column. - reduceOp
- Type: Emgu.CV.CvEnumReduceType
The reduction operation type - dType (Optional)
- Type: Emgu.CV.CvEnumDepthType
Optional depth of the output array. - stream (Optional)
- Type: Emgu.CV.CudaStream
Use a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).
See Also