hls::Range


Synopsis

template<int ROWS, int COLS, int SRC_T, int DST_T, typename P_T>
void hls::Range( hls::Mat<ROWS, COLS, SRC_T>& src,
                 hls::Mat<ROWS, COLS, DST_T>& dst,
                 P_T start,
                 P_T end );

Parameters

  • src – the inputsingle-channel image.
  • dst – the outputsingle-channel image.
  • start – left boundary value of the range.
  • end – right boundary value of the range.

Description


Set all value in image src by the following rule and return the result as image dst.
Range.png
Image data must be stored in src, the image data of dst must be empty before invocations. Invoking this function will consume the data in src, and filling the image data of dst.
src and dst must have the same size and be single-channel images.

OpenCV reference


cvRange