Reduces a matrix to a vector. The function reduce reduces the matrix to a vector by treating the matrix rows/columns as a set of 1D vectors and performing the specified operation on the vectors until a single row/column is obtained. For example, the function can be used to co
(Mat src, Mat dst, int dim, int rtype, int dtype)