hls::Integral


Synopsis


1. compute sum:
template<int ROWS, int COLS, int SRC_T, int DST_T>
void hls::Integral( hls::Mat<ROWS, COLS, SRC_T>& src,
                    hls::Mat<ROWS+1, COLS+1, DST_T>& sum );
2. comput sum and square sum:
template<int ROWS, int COLS, int SRC_T, int DST_T, int DSTSQ_T>
void hls::Integral( hls::Mat<ROWS, COLS, SRC_T>& src,
                    hls::Mat<ROWS+1, COLS+1, DST_T>& sum,
                    hls::Mat<ROWS+1, COLS+1, DSTSQ_T>& sqsum );

Parameters

  • src – the input image.
  • sum – the sum of pixels in the input image above and to the left of the pixel.
  • sqsum – the sum of the squares of pixels in the input image above and to the left of the pixel.

Description


Implements the computation of an integral image.

OpenCV reference


cvIntegral, cv::integral