| MatReduce Method |
transforms 2D matrix to 1D row or column vector by taking sum, minimum, maximum or mean value over all the rows
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public Mat Reduce(
ReduceDimension dim,
ReduceTypes rtype,
int dtype
)
Public Function Reduce (
dim As ReduceDimension,
rtype As ReduceTypes,
dtype As Integer
) As Mat
public:
Mat^ Reduce(
ReduceDimension dim,
ReduceTypes rtype,
int dtype
)
member Reduce :
dim : ReduceDimension *
rtype : ReduceTypes *
dtype : int -> Mat
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: OpenCvSharpReduceTypes
[Missing <param name="rtype"/> documentation for "M:OpenCvSharp.Mat.Reduce(OpenCvSharp.ReduceDimension,OpenCvSharp.ReduceTypes,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())
Return Value
Type:
Mat[Missing <returns> documentation for "M:OpenCvSharp.Mat.Reduce(OpenCvSharp.ReduceDimension,OpenCvSharp.ReduceTypes,System.Int32)"]
See Also