hls::Set


Synopsis


1. set src image:
template<int ROWS, int COLS, int SRC_T, typename _T, int DST_T>
void hls::Set( hls::Mat<ROWS, COLS, SRC_T>& src,
               hls::Scalar<HLS_MAT_CN(DST_T), _T> scl,
               hls::Mat<ROWS, COLS, DST_T>& dst );
2. generate dst image:
template<int ROWS, int COLS, typename _T, int DST_T>
void hls::Set( hls::Scalar<HLS_MAT_CN(DST_T), _T> scl,
               hls::Mat<ROWS, COLS, DST_T>& dst );

Parameters

  • src – the input image.
  • scl – the scale value to be set.
  • dst – the output image.

Description


Set elements in image src to a given scalar value scl,save the result as image dst. Generate a dst image with all element has scalar value scl if no input image.
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 scl must have the same number of channels. dst must have the same size and number of channels as src.

OpenCV reference


cvSet