Enum opencv::imgproc::ColorConversionCodes [−][src]
#[repr(C)]
pub enum ColorConversionCodes {
Show 138 variants
COLOR_BGR2BGRA,
COLOR_BGRA2BGR,
COLOR_BGR2RGBA,
COLOR_RGBA2BGR,
COLOR_BGR2RGB,
COLOR_BGRA2RGBA,
COLOR_BGR2GRAY,
COLOR_RGB2GRAY,
COLOR_GRAY2BGR,
COLOR_GRAY2BGRA,
COLOR_BGRA2GRAY,
COLOR_RGBA2GRAY,
COLOR_BGR2BGR565,
COLOR_RGB2BGR565,
COLOR_BGR5652BGR,
COLOR_BGR5652RGB,
COLOR_BGRA2BGR565,
COLOR_RGBA2BGR565,
COLOR_BGR5652BGRA,
COLOR_BGR5652RGBA,
COLOR_GRAY2BGR565,
COLOR_BGR5652GRAY,
COLOR_BGR2BGR555,
COLOR_RGB2BGR555,
COLOR_BGR5552BGR,
COLOR_BGR5552RGB,
COLOR_BGRA2BGR555,
COLOR_RGBA2BGR555,
COLOR_BGR5552BGRA,
COLOR_BGR5552RGBA,
COLOR_GRAY2BGR555,
COLOR_BGR5552GRAY,
COLOR_BGR2XYZ,
COLOR_RGB2XYZ,
COLOR_XYZ2BGR,
COLOR_XYZ2RGB,
COLOR_BGR2YCrCb,
COLOR_RGB2YCrCb,
COLOR_YCrCb2BGR,
COLOR_YCrCb2RGB,
COLOR_BGR2HSV,
COLOR_RGB2HSV,
COLOR_BGR2Lab,
COLOR_RGB2Lab,
COLOR_BGR2Luv,
COLOR_RGB2Luv,
COLOR_BGR2HLS,
COLOR_RGB2HLS,
COLOR_HSV2BGR,
COLOR_HSV2RGB,
COLOR_Lab2BGR,
COLOR_Lab2RGB,
COLOR_Luv2BGR,
COLOR_Luv2RGB,
COLOR_HLS2BGR,
COLOR_HLS2RGB,
COLOR_BGR2HSV_FULL,
COLOR_RGB2HSV_FULL,
COLOR_BGR2HLS_FULL,
COLOR_RGB2HLS_FULL,
COLOR_HSV2BGR_FULL,
COLOR_HSV2RGB_FULL,
COLOR_HLS2BGR_F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R2BGR,
COLOR_BayerBG2GRAY,
COLOR_BayerGB2GRAY,
COLOR_BayerRG2GRAY,
COLOR_BayerGR2GRAY,
COLOR_BayerBG2BGR_VNG,
COLOR_BayerGB2BGR_VNG,
COLOR_BayerRG2BGR_VNG,
COLOR_BayerGR2BGR_VNG,
COLOR_BayerBG2BGR_EA,
COLOR_BayerGB2BGR_EA,
COLOR_BayerRG2BGR_EA,
COLOR_BayerGR2BGR_EA,
COLOR_BayerBG2BGRA,
COLOR_BayerGB2BGRA,
COLOR_BayerRG2BGRA,
COLOR_BayerGR2BGRA,
COLOR_COLORCVT_MAX,
}Expand description
the color conversion codes
See also
@ref imgproc_color_conversions @ingroup imgproc_color_conversions
Variants
add alpha channel to RGB or BGR image
remove alpha channel from RGB or BGR image
convert between RGB and BGR color spaces (with or without alpha channel)
convert between RGB/BGR and grayscale, @ref color_convert_rgb_gray “color conversions”
convert between RGB/BGR and BGR565 (16-bit images)
convert between grayscale to BGR565 (16-bit images)
convert between RGB/BGR and BGR555 (16-bit images)
convert between grayscale and BGR555 (16-bit images)
convert RGB/BGR to CIE XYZ, @ref color_convert_rgb_xyz “color conversions”
convert RGB/BGR to luma-chroma (aka YCC), @ref color_convert_rgb_ycrcb “color conversions”
convert RGB/BGR to HSV (hue saturation value) with H range 0..180 if 8 bit image, @ref color_convert_rgb_hsv “color conversions”
convert RGB/BGR to CIE Lab, @ref color_convert_rgb_lab “color conversions”
convert RGB/BGR to CIE Luv, @ref color_convert_rgb_luv “color conversions”
convert RGB/BGR to HLS (hue lightness saturation) with H range 0..180 if 8 bit image, @ref color_convert_rgb_hls “color conversions”
backward conversions HSV to RGB/BGR with H range 0..180 if 8 bit image
backward conversions HLS to RGB/BGR with H range 0..180 if 8 bit image
convert RGB/BGR to HSV (hue saturation value) with H range 0..255 if 8 bit image, @ref color_convert_rgb_hsv “color conversions”
convert RGB/BGR to HLS (hue lightness saturation) with H range 0..255 if 8 bit image, @ref color_convert_rgb_hls “color conversions”
backward conversions HSV to RGB/BGR with H range 0..255 if 8 bit image
backward conversions HLS to RGB/BGR with H range 0..255 if 8 bit image
convert between RGB/BGR and YUV
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:0 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
YUV 4:2:2 family to RGB
alpha premultiplication
alpha premultiplication
RGB to YUV 4:2:0 family
RGB to YUV 4:2:0 family
RGB to YUV 4:2:0 family
RGB to YUV 4:2:0 family
RGB to YUV 4:2:0 family
RGB to YUV 4:2:0 family
RGB to YUV 4:2:0 family
RGB to YUV 4:2:0 family
Demosaicing
Demosaicing
Demosaicing
Demosaicing
Demosaicing
Demosaicing
Demosaicing
Demosaicing
Demosaicing using Variable Number of Gradients
Demosaicing using Variable Number of Gradients
Demosaicing using Variable Number of Gradients
Demosaicing using Variable Number of Gradients
Edge-Aware Demosaicing
Edge-Aware Demosaicing
Edge-Aware Demosaicing
Edge-Aware Demosaicing
Demosaicing with alpha channel
Demosaicing with alpha channel
Demosaicing with alpha channel
Demosaicing with alpha channel
Demosaicing with alpha channel
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ColorConversionCodes
impl Send for ColorConversionCodes
impl Sync for ColorConversionCodes
impl Unpin for ColorConversionCodes
impl UnwindSafe for ColorConversionCodes
Blanket Implementations
Mutably borrows from an owned value. Read more