hls::AbsDiff


Synopsis

template<int ROWS, int COLS, int SRC1_T, int SRC2_T, int DST_T>
void hls::AbsDiff( hls::Mat<ROWS, COLS, SRC1_T>& src1,
                   hls::Mat<ROWS, COLS, SRC2_T>& src2,
                   hls::Mat<ROWS, COLS, DST_T>& dst );

Parameters

  • src1 – first input image.
  • src2 – second input image.
  • dst – the output image.

Description


Computes the per-element sum of an image src and a scalar scl, and save the result in dst.
Computes the absolute difference between two input images src1 and src2 and save the result indst.
Image data must be stored in src1 and src2, the image data of dst must be empty before invocations. Invoking this function will consume the data in src1 and src2, and filling the image data of dst.
src1 and src2 must have the same size and number of channels. dst must have the same size and number of channels as the inputs.

OpenCV reference


cvAbsDiff, cv::absdiff