ColorConversionCodes

Enum ColorConversionCodes 

Source
#[repr(i32)]
pub enum ColorConversionCodes {
Show 150 variants COLOR_BGR2BGRA = 0, COLOR_BGRA2BGR = 1, COLOR_BGR2RGBA = 2, COLOR_RGBA2BGR = 3, COLOR_BGR2RGB = 4, COLOR_BGRA2RGBA = 5, COLOR_BGR2GRAY = 6, COLOR_RGB2GRAY = 7, COLOR_GRAY2BGR = 8, COLOR_GRAY2BGRA = 9, COLOR_BGRA2GRAY = 10, COLOR_RGBA2GRAY = 11, COLOR_BGR2BGR565 = 12, COLOR_RGB2BGR565 = 13, COLOR_BGR5652BGR = 14, COLOR_BGR5652RGB = 15, COLOR_BGRA2BGR565 = 16, COLOR_RGBA2BGR565 = 17, COLOR_BGR5652BGRA = 18, COLOR_BGR5652RGBA = 19, COLOR_GRAY2BGR565 = 20, COLOR_BGR5652GRAY = 21, COLOR_BGR2BGR555 = 22, COLOR_RGB2BGR555 = 23, COLOR_BGR5552BGR = 24, COLOR_BGR5552RGB = 25, COLOR_BGRA2BGR555 = 26, COLOR_RGBA2BGR555 = 27, COLOR_BGR5552BGRA = 28, COLOR_BGR5552RGBA = 29, COLOR_GRAY2BGR555 = 30, COLOR_BGR5552GRAY = 31, COLOR_BGR2XYZ = 32, COLOR_RGB2XYZ = 33, COLOR_XYZ2BGR = 34, COLOR_XYZ2RGB = 35, COLOR_BGR2YCrCb = 36, COLOR_RGB2YCrCb = 37, COLOR_YCrCb2BGR = 38, COLOR_YCrCb2RGB = 39, COLOR_BGR2HSV = 40, COLOR_RGB2HSV = 41, COLOR_BGR2Lab = 44, COLOR_RGB2Lab = 45, COLOR_BGR2Luv = 50, COLOR_RGB2Luv = 51, COLOR_BGR2HLS = 52, COLOR_RGB2HLS = 53, COLOR_HSV2BGR = 54, COLOR_HSV2RGB = 55, COLOR_Lab2BGR = 56, COLOR_Lab2RGB = 57, COLOR_Luv2BGR = 58, COLOR_Luv2RGB = 59, COLOR_HLS2BGR = 60, COLOR_HLS2RGB = 61, COLOR_BGR2HSV_FULL = 66, COLOR_RGB2HSV_FULL = 67, COLOR_BGR2HLS_FULL = 68, COLOR_RGB2HLS_FULL = 69, COLOR_HSV2BGR_FULL = 70, COLOR_HSV2RGB_FULL = 71, COLOR_HLS2BGR_FULL = 72, COLOR_HLS2RGB_FULL = 73, COLOR_LBGR2Lab = 74, COLOR_LRGB2Lab = 75, COLOR_LBGR2Luv = 76, COLOR_LRGB2Luv = 77, COLOR_Lab2LBGR = 78, COLOR_Lab2LRGB = 79, COLOR_Luv2LBGR = 80, COLOR_Luv2LRGB = 81, COLOR_BGR2YUV = 82, COLOR_RGB2YUV = 83, COLOR_YUV2BGR = 84, COLOR_YUV2RGB = 85, COLOR_YUV2RGB_NV12 = 90, COLOR_YUV2BGR_NV12 = 91, COLOR_YUV2RGB_NV21 = 92, COLOR_YUV2BGR_NV21 = 93, COLOR_YUV2RGBA_NV12 = 94, COLOR_YUV2BGRA_NV12 = 95, COLOR_YUV2RGBA_NV21 = 96, COLOR_YUV2BGRA_NV21 = 97, COLOR_YUV2RGB_YV12 = 98, COLOR_YUV2BGR_YV12 = 99, COLOR_YUV2RGB_IYUV = 100, COLOR_YUV2BGR_IYUV = 101, COLOR_YUV2RGBA_YV12 = 102, COLOR_YUV2BGRA_YV12 = 103, COLOR_YUV2RGBA_IYUV = 104, COLOR_YUV2BGRA_IYUV = 105, COLOR_YUV2GRAY_420 = 106, COLOR_YUV2RGB_UYVY = 107, COLOR_YUV2BGR_UYVY = 108, COLOR_YUV2RGBA_UYVY = 111, COLOR_YUV2BGRA_UYVY = 112, COLOR_YUV2RGB_YUY2 = 115, COLOR_YUV2BGR_YUY2 = 116, COLOR_YUV2RGB_YVYU = 117, COLOR_YUV2BGR_YVYU = 118, COLOR_YUV2RGBA_YUY2 = 119, COLOR_YUV2BGRA_YUY2 = 120, COLOR_YUV2RGBA_YVYU = 121, COLOR_YUV2BGRA_YVYU = 122, COLOR_YUV2GRAY_UYVY = 123, COLOR_YUV2GRAY_YUY2 = 124, COLOR_RGBA2mRGBA = 125, COLOR_mRGBA2RGBA = 126, COLOR_RGB2YUV_I420 = 127, COLOR_BGR2YUV_I420 = 128, COLOR_RGBA2YUV_I420 = 129, COLOR_BGRA2YUV_I420 = 130, COLOR_RGB2YUV_YV12 = 131, COLOR_BGR2YUV_YV12 = 132, COLOR_RGBA2YUV_YV12 = 133, COLOR_BGRA2YUV_YV12 = 134, COLOR_BayerBG2BGR = 46, COLOR_BayerGB2BGR = 47, COLOR_BayerRG2BGR = 48, COLOR_BayerGR2BGR = 49, COLOR_BayerBG2GRAY = 86, COLOR_BayerGB2GRAY = 87, COLOR_BayerRG2GRAY = 88, COLOR_BayerGR2GRAY = 89, COLOR_BayerBG2BGR_VNG = 62, COLOR_BayerGB2BGR_VNG = 63, COLOR_BayerRG2BGR_VNG = 64, COLOR_BayerGR2BGR_VNG = 65, COLOR_BayerBG2BGR_EA = 135, COLOR_BayerGB2BGR_EA = 136, COLOR_BayerRG2BGR_EA = 137, COLOR_BayerGR2BGR_EA = 138, COLOR_BayerBG2BGRA = 139, COLOR_BayerGB2BGRA = 140, COLOR_BayerRG2BGRA = 141, COLOR_BayerGR2BGRA = 142, COLOR_RGB2YUV_UYVY = 143, COLOR_BGR2YUV_UYVY = 144, COLOR_RGBA2YUV_UYVY = 145, COLOR_BGRA2YUV_UYVY = 146, COLOR_RGB2YUV_YUY2 = 147, COLOR_BGR2YUV_YUY2 = 148, COLOR_RGB2YUV_YVYU = 149, COLOR_BGR2YUV_YVYU = 150, COLOR_RGBA2YUV_YUY2 = 151, COLOR_BGRA2YUV_YUY2 = 152, COLOR_RGBA2YUV_YVYU = 153, COLOR_BGRA2YUV_YVYU = 154, COLOR_COLORCVT_MAX = 155,
}
Expand description

the color conversion codes

§See also

[imgproc_color_conversions]

Note: The source image (src) must be of an appropriate type for the desired color conversion.

  • [8U] means to support CV_8U src type.
  • [16U] means to support CV_16U src type.
  • [32F] means to support CV_32F src type. @ingroup imgproc_color_conversions

Variants§

§

COLOR_BGR2BGRA = 0

[8U/16U/32F] add alpha channel to RGB or BGR image

§

COLOR_BGRA2BGR = 1

[8U/16U/32F] remove alpha channel from RGB or BGR image

§

COLOR_BGR2RGBA = 2

[8U/16U/32F] convert between RGB and BGR color spaces (with or without alpha channel)

§

COLOR_RGBA2BGR = 3

[8U/16U/32F]

§

COLOR_BGR2RGB = 4

[8U/16U/32F]

§

COLOR_BGRA2RGBA = 5

[8U/16U/32F]

§

COLOR_BGR2GRAY = 6

[8U/16U/32F] convert between RGB/BGR and grayscale, [color_convert_rgb_gray] “color conversions”

§

COLOR_RGB2GRAY = 7

[8U/16U/32F]

§

COLOR_GRAY2BGR = 8

[8U/16U/32F]

§

COLOR_GRAY2BGRA = 9

[8U/16U/32F]

§

COLOR_BGRA2GRAY = 10

[8U/16U/32F]

§

COLOR_RGBA2GRAY = 11

[8U/16U/32F]

§

COLOR_BGR2BGR565 = 12

[8U] convert between RGB/BGR and BGR565 (16-bit images)

§

COLOR_RGB2BGR565 = 13

[8U]

§

COLOR_BGR5652BGR = 14

[8U]

§

COLOR_BGR5652RGB = 15

[8U]

§

COLOR_BGRA2BGR565 = 16

[8U]

§

COLOR_RGBA2BGR565 = 17

[8U]

§

COLOR_BGR5652BGRA = 18

[8U]

§

COLOR_BGR5652RGBA = 19

[8U]

§

COLOR_GRAY2BGR565 = 20

[8U] convert between grayscale to BGR565 (16-bit images)

§

COLOR_BGR5652GRAY = 21

[8U]

§

COLOR_BGR2BGR555 = 22

[8U] convert between RGB/BGR and BGR555 (16-bit images)

§

COLOR_RGB2BGR555 = 23

[8U]

§

COLOR_BGR5552BGR = 24

[8U]

§

COLOR_BGR5552RGB = 25

[8U]

§

COLOR_BGRA2BGR555 = 26

[8U]

§

COLOR_RGBA2BGR555 = 27

[8U]

§

COLOR_BGR5552BGRA = 28

[8U]

§

COLOR_BGR5552RGBA = 29

[8U]

§

COLOR_GRAY2BGR555 = 30

[8U] convert between grayscale and BGR555 (16-bit images)

§

COLOR_BGR5552GRAY = 31

[8U]

§

COLOR_BGR2XYZ = 32

[8U/16U/32F] convert RGB/BGR to CIE XYZ, [color_convert_rgb_xyz] “color conversions”

§

COLOR_RGB2XYZ = 33

[8U/16U/32F]

§

COLOR_XYZ2BGR = 34

[8U/16U/32F]

§

COLOR_XYZ2RGB = 35

[8U/16U/32F]

§

COLOR_BGR2YCrCb = 36

[8U/16U/32F] convert RGB/BGR to luma-chroma (aka YCC), [color_convert_rgb_ycrcb] “color conversions”

§

COLOR_RGB2YCrCb = 37

[8U/16U/32F]

§

COLOR_YCrCb2BGR = 38

[8U/16U/32F]

§

COLOR_YCrCb2RGB = 39

[8U/16U/32F]

§

COLOR_BGR2HSV = 40

[8U/32F] convert RGB/BGR to HSV (hue saturation value) with H range 0..180 if 8 bit image, [color_convert_rgb_hsv] “color conversions”

§

COLOR_RGB2HSV = 41

[8U/32F]

§

COLOR_BGR2Lab = 44

[8U/32F] convert RGB/BGR to CIE Lab, [color_convert_rgb_lab] “color conversions”

§

COLOR_RGB2Lab = 45

[8U/32F]

§

COLOR_BGR2Luv = 50

[8U/32F] convert RGB/BGR to CIE Luv, [color_convert_rgb_luv] “color conversions”

§

COLOR_RGB2Luv = 51

[8U/32F]

§

COLOR_BGR2HLS = 52

[8U/32F] convert RGB/BGR to HLS (hue lightness saturation) with H range 0..180 if 8 bit image, [color_convert_rgb_hls] “color conversions”

§

COLOR_RGB2HLS = 53

[8U/32F]

§

COLOR_HSV2BGR = 54

[8U/32F] backward conversions HSV to RGB/BGR with H range 0..180 if 8 bit image

§

COLOR_HSV2RGB = 55

[8U/32F]

§

COLOR_Lab2BGR = 56

[8U/32F]

§

COLOR_Lab2RGB = 57

[8U/32F]

§

COLOR_Luv2BGR = 58

[8U/32F]

§

COLOR_Luv2RGB = 59

[8U/32F]

§

COLOR_HLS2BGR = 60

[8U/32F] backward conversions HLS to RGB/BGR with H range 0..180 if 8 bit image

§

COLOR_HLS2RGB = 61

[8U/32F]

§

COLOR_BGR2HSV_FULL = 66

[8U/32F] convert RGB/BGR to HSV (hue saturation value) with H range 0..255 if 8 bit image, [color_convert_rgb_hsv] “color conversions”

§

COLOR_RGB2HSV_FULL = 67

[8U/32F]

§

COLOR_BGR2HLS_FULL = 68

[8U/32F] convert RGB/BGR to HLS (hue lightness saturation) with H range 0..255 if 8 bit image, [color_convert_rgb_hls] “color conversions”

§

COLOR_RGB2HLS_FULL = 69

[8U/32F]

§

COLOR_HSV2BGR_FULL = 70

[8U/32F] backward conversions HSV to RGB/BGR with H range 0..255 if 8 bit image

§

COLOR_HSV2RGB_FULL = 71

[8U/32F]

§

COLOR_HLS2BGR_FULL = 72

[8U/32F] backward conversions HLS to RGB/BGR with H range 0..255 if 8 bit image

§

COLOR_HLS2RGB_FULL = 73

[8U/32F]

§

COLOR_LBGR2Lab = 74

[8U/32F]

§

COLOR_LRGB2Lab = 75

[8U/32F]

§

COLOR_LBGR2Luv = 76

[8U/32F]

§

COLOR_LRGB2Luv = 77

[8U/32F]

§

COLOR_Lab2LBGR = 78

[8U/32F]

§

COLOR_Lab2LRGB = 79

[8U/32F]

§

COLOR_Luv2LBGR = 80

[8U/32F]

§

COLOR_Luv2LRGB = 81

[8U/32F]

§

COLOR_BGR2YUV = 82

[8U/16U/32F] convert between RGB/BGR and YUV

§

COLOR_RGB2YUV = 83

[8U/16U/32F]

§

COLOR_YUV2BGR = 84

[8U/16U/32F]

§

COLOR_YUV2RGB = 85

[8U/16U/32F]

§

COLOR_YUV2RGB_NV12 = 90

[8U] convert between 4:2:0-subsampled YUV NV12 and RGB, two planes (in one or separate arrays): Y and U/V interleaved, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGR_NV12 = 91

[8U] convert between 4:2:0-subsampled YUV NV12 and BGR, two planes (in one or separate arrays): Y and U/V interleaved, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2RGB_NV21 = 92

[8U] convert between 4:2:0-subsampled YUV NV21 and RGB, two planes (in one or separate arrays): Y and V/U interleaved, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGR_NV21 = 93

[8U] convert between 4:2:0-subsampled YUV NV21 and BGR, two planes (in one or separate arrays): Y and V/U interleaved, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2RGBA_NV12 = 94

[8U] convert between 4:2:0-subsampled YUV NV12 and RGBA, two planes (in one or separate arrays): Y and U/V interleaved, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGRA_NV12 = 95

[8U] convert between 4:2:0-subsampled YUV NV12 and BGRA, two planes (in one or separate arrays): Y and U/V interleaved, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2RGBA_NV21 = 96

[8U] convert between 4:2:0-subsampled YUV NV21 and RGBA, two planes (in one or separate arrays): Y and V/U interleaved, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGRA_NV21 = 97

[8U] convert between 4:2:0-subsampled YUV NV21 and BGRA, two planes (in one or separate arrays): Y and V/U interleaved, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2RGB_YV12 = 98

[8U] convert between 4:2:0-subsampled YUV YV12 and RGB, three planes in one array: Y, V and U, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGR_YV12 = 99

[8U] convert between 4:2:0-subsampled YUV YV12 and BGR, three planes in one array: Y, V and U, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2RGB_IYUV = 100

[8U] convert between 4:2:0-subsampled YUV IYUV and RGB, three planes in one array: Y, U and V, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGR_IYUV = 101

[8U] convert between 4:2:0-subsampled YUV IYUV and BGR, three planes in one array: Y, U and V, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2RGBA_YV12 = 102

[8U] convert between 4:2:0-subsampled YUV YV12 and RGBA, three planes in one array: Y, V and U, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGRA_YV12 = 103

[8U] convert between 4:2:0-subsampled YUV YV12 and BGRA, three planes in one array: Y, V and U, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2RGBA_IYUV = 104

[8U] convert between 4:2:0-subsampled YUV YV12 and RGBA, three planes in one array: Y, U and V, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGRA_IYUV = 105

[8U] convert between 4:2:0-subsampled YUV YV12 and BGRA, three planes in one array: Y, U and V, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2GRAY_420 = 106

[8U] extract Y channel from YUV 4:2:0 image

§

COLOR_YUV2RGB_UYVY = 107

[8U] convert between YUV UYVY and RGB, YUV is 4:2:2-subsampled and interleaved as U/Y1/V/Y2, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGR_UYVY = 108

[8U] convert between YUV UYVY and BGR, YUV is 4:2:2-subsampled and interleaved as U/Y1/V/Y2, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2RGBA_UYVY = 111

[8U] convert between YUV UYVY and RGBA, YUV is 4:2:2-subsampled and interleaved as U/Y1/V/Y2, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGRA_UYVY = 112

[8U] convert between YUV UYVY and BGRA, YUV is 4:2:2-subsampled and interleaved as U/Y1/V/Y2, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2RGB_YUY2 = 115

[8U] convert between YUV YUY2 and RGB, YUV is 4:2:2-subsampled and interleaved as Y1/U/Y2/V, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGR_YUY2 = 116

[8U] convert between YUV YUY2 and BGR, YUV is 4:2:2-subsampled and interleaved as Y1/U/Y2/V, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2RGB_YVYU = 117

[8U] convert between YUV YVYU and RGB, YUV is 4:2:2-subsampled and interleaved as Y1/V/Y2/U, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGR_YVYU = 118

[8U] convert between YUV YVYU and BGR, YUV is 4:2:2-subsampled and interleaved as Y1/V/Y2/U, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2RGBA_YUY2 = 119

[8U] convert between YUV YUY2 and RGBA, YUV is 4:2:2-subsampled and interleaved as Y1/U/Y2/V, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGRA_YUY2 = 120

[8U] convert between YUV YUY2 and BGRA, YUV is 4:2:2-subsampled and interleaved as Y1/U/Y2/V, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2RGBA_YVYU = 121

[8U] convert between YUV YVYU and RGBA, YUV is 4:2:2-subsampled and interleaved as Y1/V/Y2/U, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2BGRA_YVYU = 122

[8U] convert between YUV YVYU and BGRA, YUV is 4:2:2-subsampled and interleaved as Y1/V/Y2/U, see [color_convert_rgb_yuv_42x]

§

COLOR_YUV2GRAY_UYVY = 123

[8U] extract Y channel from YUV 4:2:2 image

§

COLOR_YUV2GRAY_YUY2 = 124

[8U] extract Y channel from YUV 4:2:2 image

§

COLOR_RGBA2mRGBA = 125

[8U]

§

COLOR_mRGBA2RGBA = 126

[8U]

§

COLOR_RGB2YUV_I420 = 127

[8U] convert between RGB and 4:2:0-subsampled YUV I420, three planes in one array: Y, U and V, see [color_convert_rgb_yuv_42x]

§

COLOR_BGR2YUV_I420 = 128

[8U] convert between BGR and 4:2:0-subsampled YUV I420, three planes in one array: Y, U and V, see [color_convert_rgb_yuv_42x]

§

COLOR_RGBA2YUV_I420 = 129

[8U] convert between RGBA and 4:2:0-subsampled YUV I420, three planes in one array: Y, U and V, see [color_convert_rgb_yuv_42x]

§

COLOR_BGRA2YUV_I420 = 130

[8U] convert between BGRA and 4:2:0-subsampled YUV I420, three planes in one array: Y, U and V, see [color_convert_rgb_yuv_42x]

§

COLOR_RGB2YUV_YV12 = 131

[8U] convert between RGB and 4:2:0-subsampled YUV YV12, three planes in one array: Y, V and U, see [color_convert_rgb_yuv_42x]

§

COLOR_BGR2YUV_YV12 = 132

[8U] convert between BGR and 4:2:0-subsampled YUV YV12, three planes in one array: Y, V and U, see [color_convert_rgb_yuv_42x]

§

COLOR_RGBA2YUV_YV12 = 133

[8U] convert between RGBA and 4:2:0-subsampled YUV YV12, three planes in one array: Y, V and U, see [color_convert_rgb_yuv_42x]

§

COLOR_BGRA2YUV_YV12 = 134

[8U] convert between BGRA and 4:2:0-subsampled YUV YV12, three planes in one array: Y, V and U, see [color_convert_rgb_yuv_42x]

§

COLOR_BayerBG2BGR = 46

[8U/16U] equivalent to RGGB Bayer pattern

§

COLOR_BayerGB2BGR = 47

[8U/16U] equivalent to GRBG Bayer pattern

§

COLOR_BayerRG2BGR = 48

[8U/16U] equivalent to BGGR Bayer pattern

§

COLOR_BayerGR2BGR = 49

[8U/16U] equivalent to GBRG Bayer pattern

§

COLOR_BayerBG2GRAY = 86

[8U/16U] equivalent to RGGB Bayer pattern

§

COLOR_BayerGB2GRAY = 87

[8U/16U] equivalent to GRBG Bayer pattern

§

COLOR_BayerRG2GRAY = 88

[8U/16U] equivalent to BGGR Bayer pattern

§

COLOR_BayerGR2GRAY = 89

[8U/16U] equivalent to GBRG Bayer pattern

§

COLOR_BayerBG2BGR_VNG = 62

[8U] equivalent to RGGB Bayer pattern

§

COLOR_BayerGB2BGR_VNG = 63

[8U] equivalent to GRBG Bayer pattern

§

COLOR_BayerRG2BGR_VNG = 64

[8U] equivalent to BGGR Bayer pattern

§

COLOR_BayerGR2BGR_VNG = 65

[8U] equivalent to GBRG Bayer pattern

§

COLOR_BayerBG2BGR_EA = 135

[8U/16U] equivalent to RGGB Bayer pattern

§

COLOR_BayerGB2BGR_EA = 136

[8U/16U] equivalent to GRBG Bayer pattern

§

COLOR_BayerRG2BGR_EA = 137

[8U/16U] equivalent to BGGR Bayer pattern

§

COLOR_BayerGR2BGR_EA = 138

[8U/16U] equivalent to GBRG Bayer pattern

§

COLOR_BayerBG2BGRA = 139

[8U/16U] equivalent to RGGB Bayer pattern

§

COLOR_BayerGB2BGRA = 140

[8U/16U] equivalent to GRBG Bayer pattern

§

COLOR_BayerRG2BGRA = 141

[8U/16U] equivalent to BGGR Bayer pattern

§

COLOR_BayerGR2BGRA = 142

[8U/16U] equivalent to GBRG Bayer pattern

§

COLOR_RGB2YUV_UYVY = 143

[8U] convert between RGB and YUV UYVU, YUV is 4:2:2 and interleaved as U/Y1/V/Y2, see [color_convert_rgb_yuv_42x]

§

COLOR_BGR2YUV_UYVY = 144

[8U] convert between BGR and YUV UYVU, YUV is 4:2:2 and interleaved as U/Y1/V/Y2, see [color_convert_rgb_yuv_42x]

§

COLOR_RGBA2YUV_UYVY = 145

[8U] convert between RGBA and YUV UYVU, YUV is 4:2:2 and interleaved as U/Y1/V/Y2, see [color_convert_rgb_yuv_42x]

§

COLOR_BGRA2YUV_UYVY = 146

[8U] convert between BGRA and YUV UYVU, YUV is 4:2:2 and interleaved as U/Y1/V/Y2, see [color_convert_rgb_yuv_42x]

§

COLOR_RGB2YUV_YUY2 = 147

[8U] convert between RGB and YUV YUY2, YUV is 4:2:2 and interleaved as Y1/U/Y2/V, see [color_convert_rgb_yuv_42x]

§

COLOR_BGR2YUV_YUY2 = 148

[8U] convert between BGR and YUV YUY2, YUV is 4:2:2 and interleaved as Y1/U/Y2/V, see [color_convert_rgb_yuv_42x]

§

COLOR_RGB2YUV_YVYU = 149

[8U] convert between RGB and YUV YVYU, YUV is 4:2:2 and interleaved as Y1/V/Y2/U, see [color_convert_rgb_yuv_42x]

§

COLOR_BGR2YUV_YVYU = 150

[8U] convert between BGR and YUV YVYU, YUV is 4:2:2 and interleaved as Y1/V/Y2/U, see [color_convert_rgb_yuv_42x]

§

COLOR_RGBA2YUV_YUY2 = 151

[8U] convert between RGBA and YUV YUY2, YUV is 4:2:2 and interleaved as Y1/U/Y2/V, see [color_convert_rgb_yuv_42x]

§

COLOR_BGRA2YUV_YUY2 = 152

[8U] convert between BGRA and YUV YUY2, YUV is 4:2:2 and interleaved as Y1/U/Y2/V, see [color_convert_rgb_yuv_42x]

§

COLOR_RGBA2YUV_YVYU = 153

[8U] convert between RGBA and YUV YVYU, YUV is 4:2:2 and interleaved as Y1/V/Y2/U, see [color_convert_rgb_yuv_42x]

§

COLOR_BGRA2YUV_YVYU = 154

[8U] convert between BGRA and YUV YVYU, YUV is 4:2:2 and interleaved as Y1/V/Y2/U, see [color_convert_rgb_yuv_42x]

§

COLOR_COLORCVT_MAX = 155

Trait Implementations§

Source§

impl Clone for ColorConversionCodes

Source§

fn clone(&self) -> ColorConversionCodes

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ColorConversionCodes

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ColorConversionCodes> for i32

Source§

fn from(v: ColorConversionCodes) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ColorConversionCodes

Source§

fn eq(&self, other: &ColorConversionCodes) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<i32> for ColorConversionCodes

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: i32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for ColorConversionCodes

Source§

impl Eq for ColorConversionCodes

Source§

impl StructuralPartialEq for ColorConversionCodes

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.