[−][src]Function opencv::cudaimgproc::swap_channels
pub fn swap_channels(
image: &mut dyn ToInputOutputArray,
dst_order: &[i32; 4],
stream: &mut Stream
) -> Result<()>
Exchanges the color channels of an image in-place.
Parameters
- image: Source image. Supports only CV_8UC4 type.
- dstOrder: Integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [3,2,1,0] converts this to ABGR channel order.
- stream: Stream for the asynchronous version.
The methods support arbitrary permutations of the original channels, including replication.
C++ default parameters
- stream: Stream::Null()