Function opencv::core::split_slice
source · Expand description
Divides a multi-channel array into several single-channel arrays.
The function cv::split splits a multi-channel array into separate single-channel arrays:
If you need to extract a single channel or do some other sophisticated channel permutation, use
mixChannels .
The following example demonstrates how to split a 3-channel matrix into 3 single channel matrices. example
Parameters
- src: input multi-channel array.
- mvbegin: output array; the number of arrays must match src.channels(); the arrays themselves are reallocated, if needed.
See also
merge, mixChannels, cvtColor