@@ -662,11 +662,11 @@ CV_EXPORTS_W void countNonZero(InputArray src, OutputArray dst, Stream& stream =
662
662
@param dim Dimension index along which the matrix is reduced. 0 means that the matrix is reduced
663
663
to a single row. 1 means that the matrix is reduced to a single column.
664
664
@param reduceOp Reduction operation that could be one of the following:
665
- - **CV_REDUCE_SUM ** The output is the sum of all rows/columns of the matrix.
666
- - **CV_REDUCE_AVG ** The output is the mean vector of all rows/columns of the matrix.
667
- - **CV_REDUCE_MAX ** The output is the maximum (column/row-wise) of all rows/columns of the
665
+ - **REDUCE_SUM ** The output is the sum of all rows/columns of the matrix.
666
+ - **REDUCE_AVG ** The output is the mean vector of all rows/columns of the matrix.
667
+ - **REDUCE_MAX ** The output is the maximum (column/row-wise) of all rows/columns of the
668
668
matrix.
669
- - **CV_REDUCE_MIN ** The output is the minimum (column/row-wise) of all rows/columns of the
669
+ - **REDUCE_MIN ** The output is the minimum (column/row-wise) of all rows/columns of the
670
670
matrix.
671
671
@param dtype When it is negative, the destination vector will have the same type as the source
672
672
matrix. Otherwise, its type will be CV_MAKE_TYPE(CV_MAT_DEPTH(dtype), mtx.channels()) .
@@ -675,7 +675,7 @@ matrix. Otherwise, its type will be CV_MAKE_TYPE(CV_MAT_DEPTH(dtype), mtx.channe
675
675
The function reduce reduces the matrix to a vector by treating the matrix rows/columns as a set of
676
676
1D vectors and performing the specified operation on the vectors until a single row/column is
677
677
obtained. For example, the function can be used to compute horizontal and vertical projections of a
678
- raster image. In case of CV_REDUCE_SUM and CV_REDUCE_AVG , the output may have a larger element
678
+ raster image. In case of REDUCE_SUM and REDUCE_AVG , the output may have a larger element
679
679
bit-depth to preserve accuracy. And multi-channel arrays are also supported in these two reduction
680
680
modes.
681
681
0 commit comments