void cvSplit(const CvArr* src, CvArr* dst0, CvArr* dst1, CvArr* dst2, CvArr* dst3)¶
Divides multi-channel array into several single-channel arrays or extracts a single channel from the array.
#define cvCvtPixToPlane cvSplit
Parameters: •src – Source array
•dst0 – Destination channel 0
•dst1 – Destination channel 1
•dst2 – Destination channel 2
•dst3 – Destination channel 3
The function divides a multi-channel array into separate single-channel arrays. Two modes are available for the operation. If the source array has N channels then if the first N destination channels are not NULL, they all are extracted from the source array; if only a single destination channel of the first N is not NULL, this particular channel is extracted; otherwise an error is raised. The rest of the destination channels (beyond the first N) must always be NULL. For IplImage Copy with COI set can be also used to extract a single channel from the image.
Partager