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.CudaAssembly: Emgu.CV.Cuda (in Emgu.CV.Cuda.dll) Version: 3.0.0.2161 (3.0.0.2161)
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
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.CvEnumReduceDimension
The dimension index along which the matrix is reduce. - reduceOp
- Type: Emgu.CV.CvEnumReduceType
The reduction operation type - dType (Optional)
- Type: Emgu.CV.CvEnumDepthType
[Missing <param name="dType"/> documentation for "M:Emgu.CV.Cuda.CudaInvoke.Reduce(Emgu.CV.IInputArray,Emgu.CV.IOutputArray,Emgu.CV.CvEnum.ReduceDimension,Emgu.CV.CvEnum.ReduceType,Emgu.CV.CvEnum.DepthType,Emgu.CV.Cuda.Stream)"]
- 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