hls::Sum


Synopsis

template<typename DST_T, int ROWS, int COLS, int SRC_T>
hls::Scalar<HLS_MAT_CN(SRC_T), DST_T> hls::Sum( hls::Mat<ROWS, COLS, SRC_T>& src );

Parameters

  • src – the input image.

Description


Sums the elements of an image src and returns the result as a scalar value.
Image data must be stored in src. Invoking this function will consume the data in src.

OpenCV reference


cvSum, cv::sum