hls::Merge


Synopsis


1. input of 2 single-channel images:
template<int ROWS, int COLS, int SRC_T, int DST_T>
void hls::Merge( hls::Mat<ROWS, COLS, SRC_T>& src0,
                 hls::Mat<ROWS, COLS, SRC_T>& src1,
                 hls::Mat<ROWS, COLS, DST_T>& dst );
2. input of 3 single-channel images:
template<int ROWS, int COLS, int SRC_T, int DST_T>
void hls::Merge( hls::Mat<ROWS, COLS, SRC_T>& src0,
                 hls::Mat<ROWS, COLS, SRC_T>& src1,
                 hls::Mat<ROWS, COLS, SRC_T>& src2,
                 hls::Mat<ROWS, COLS, DST_T>& dst );
3. input of 4 single-channel images:
template<int ROWS, int COLS, int SRC_T, int DST_T>
void hls::Merge( hls::Mat<ROWS, COLS, SRC_T>& src0,
                 hls::Mat<ROWS, COLS, SRC_T>& src1,
                 hls::Mat<ROWS, COLS, SRC_T>& src2,
                 hls::Mat<ROWS, COLS, SRC_T>& src3,
                 hls::Mat<ROWS, COLS, DST_T>& dst );

Parameters

  • src0 – first single-channel input image.
  • src1 – second single channel input image.
  • src2 – third single channel input image.
  • src3 – fourth single channel input image.
  • dst – output multi-channel image.

Description


Composes a multi-channel image dst from several single-channel images.
Image data must be stored in input images, the image data of dst must be empty before invocations. Invoking this function will consume the data in inputs, and filling the image data of dst.
Input images must have the same size and be single-channel. dst must have the same sizeas the inputs, the number of channels of dst must equal to the number of input images.

OpenCV reference


cvMerge, cv::merge