[−][src]Function opencv::core::split
pub fn split(m: &dyn ToInputArray, mv: &mut dyn ToOutputArray) -> Result<()>
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. @snippet snippets/core_split.cpp 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
Overloaded parameters
- m: input multi-channel array.
- mv: output vector of arrays; the arrays themselves are reallocated, if needed.