参考资料:
1、http://docs.opencv.org/modules/core/doc/operations_on_arrays.html?highlight=reduce#void reduce(InputArray src, OutputArray dst, int dim, int rtype, int dtype)
Reduces a matrix to a vector.
C++: void reduce(InputArray src,
OutputArray dst, int dim, int rtype, int dtype=-1 )
Python: cv2.reduce(src,
dim, rtype[, dst[, dtype]]) →
dst
C: void cvReduce(const
CvArr* src, CvArr* dst, int dim=-1, int op=CV_REDUCE_SUM)
Python: cv.Reduce(src,
dst, dim=-1, op=CV_R......
阅读全文