hls::PaintMask


Synopsis

template<int ROWS, int COLS, int SRC_T, int MASK_T>
void hls::PaintMask(hls::Mat<ROWS, COLS, SRC_T>& src,
                    hls::Mat<ROWS, COLS, MASK_T>& mask,
                    hls::Mat<ROWS, COLS, SRC_T>& dst,
                    hls::Scalar<HLS_MAT_CN(SRC_T), HLS_TNAME(SRC_T)> color );

Parameters

  • src – the input image.
  • mask – the input mask.
  • dst – the output image.
  • color – the color for marking.

Description


Each pixel of the output image is either set to color (if mask is not zero) or the corresponding pixel from the input image. src, mask, and dst must have the same size.

OpenCV reference


N/A