hls::Split


Synopsis


1. input image has 2 channels:
template<int ROWS, int COLS, int SRC_T, int DST_T>
void hls::Split( hls::Mat<ROWS, COLS, SRC_T>& src,
                 hls::Mat<ROWS, COLS, DST_T>& dst0,
                 hls::Mat<ROWS, COLS, DST_T>& dst1 );
2. input image has 3 channels:
template<int ROWS, int COLS, int SRC_T, int DST_T>
void hls::Split( hls::Mat<ROWS, COLS, SRC_T>& src,
                 hls::Mat<ROWS, COLS, DST_T>& dst0,
                 hls::Mat<ROWS, COLS, DST_T>& dst1,
                 hls::Mat<ROWS, COLS, DST_T>& dst2 );
3. input image has 4 channels:
template<int ROWS, int COLS, int SRC_T, int DST_T>
void hls::Split( hls::Mat<ROWS, COLS, SRC_T>& src,
                 hls::Mat<ROWS, COLS, DST_T>& dst0,
                 hls::Mat<ROWS, COLS, DST_T>& dst1,
                 hls::Mat<ROWS, COLS, DST_T>& dst2,
                 hls::Mat<ROWS, COLS, DST_T>& dst3 );
Parameters
  • src –input multi-channel image.
  • dst0 – first single channel output image.
  • dst1 – second single channel output image.
  • dst2 – third single channel output image.
  • dst3 – fourth single channel output image.

Description


Divides a multi-channel image src from several single-channel images.
Image data must be stored in image src, the image data of outputs must be empty before invocations. Invoking this function will consume the data in src, and filling the image data of outputs.
Output images must have the same size and be single-channel. src must have the same size as the outputs, the number of channels of src must equal to the number of output images.

OpenCV reference


cvSplit, cv::split