split
Divides a multi-channel array into several single-channel arrays.
C++:void split(const Mat& src, Mat* mvbegin)
C++:void split(InputArray m, OutputArrayOfArrays mv)
Python:cv2.split(m[, mv]) → mv
C:void cvSplit(const CvArr* src, CvArr* dst0, CvArr* dst1, CvArr* dst2, CvArr* dst3)
Python:cv.Split(src, dst0, dst1, dst2, dst3) → None
Parameters:
src – input multi-channel array.
mv – output array or vector of arrays; in the first variant of the function the number of arrays must match src.channels(); the arrays themselves are reallocated, if needed.
The functions split split a multi-channel array into separate single-channel arrays:
If you need to extract a single channel or do some other sophistic