[−][src]Function opencv::cudaimgproc::cvt_color
pub fn cvt_color(
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
code: i32,
dcn: i32,
stream: &mut Stream
) -> Result<()>
Converts an image from one color space to another.
Parameters
- src: Source image with CV_8U , CV_16U , or CV_32F depth and 1, 3, or 4 channels.
- dst: Destination image.
- code: Color space conversion code. For details, see cvtColor .
- dcn: Number of channels in the destination image. If the parameter is 0, the number of the channels is derived automatically from src and the code .
- stream: Stream for the asynchronous version.
3-channel color spaces (like HSV, XYZ, and so on) can be stored in a 4-channel image for better performance.
See also
cvtColor
C++ default parameters
- dcn: 0
- stream: Stream::Null()