hls::Zero


Synopsis


1. set src image:
template<int ROWS, int COLS, int SRC_T, int DST_T>
void hls::Zero( hls::Mat<ROWS, COLS, SRC_T>& src,
                hls::Mat<ROWS, COLS, DST_T>& dst );
2. generate dst image:
template<int ROWS, int COLS, int DST_T>
void hls::Zero( hls::Mat<ROWS, COLS, DST_T>& dst );

Parameters

  • src – the input image.
  • dst – the outputimage.

Description


Set elements in image src to 0, save the result as image dst. Generate a dst image with all element 0 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.
dst must have the same size and number of channels as src.

OpenCV reference


cvSetZero, cvZero