http://www.emgu.com
Color Conversion code

Namespace: Emgu.CV.CvEnum
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.2.1777 (2.4.2.1777)

Syntax

C#
public enum COLOR_CONVERSION
Visual Basic
Public Enumeration COLOR_CONVERSION
Visual C++
public enum class COLOR_CONVERSION

Members

Member nameValueDescription
CV_BGR2BGRA0 Convert BGR color to BGRA color
CV_RGB2RGBA0 Convert RGB color to RGBA color
CV_BGRA2BGR1 Convert BGRA color to BGR color
CV_RGBA2RGB1 Convert RGBA color to RGB color
CV_BGR2RGBA2 Convert BGR color to RGBA color
CV_RGB2BGRA2 Convert RGB color to BGRA color
CV_RGBA2BGR3 Convert RGBA color to BGR color
CV_BGRA2RGB3 Convert BGRA color to RGB color
CV_BGR2RGB4 Convert BGR color to RGB color
CV_RGB2BGR4 Convert RGB color to BGR color
CV_BGRA2RGBA5 Convert BGRA color to RGBA color
CV_RGBA2BGRA5 Convert RGBA color to BGRA color
CV_BGR2GRAY6 Convert BGR color to GRAY color
CV_RGB2GRAY7 Convert RGB color to GRAY color
CV_GRAY2BGR8 Convert GRAY color to BGR color
CV_GRAY2RGB8 Convert GRAY color to RGB color
CV_GRAY2BGRA9 Convert GRAY color to BGRA color
CV_GRAY2RGBA9 Convert GRAY color to RGBA color
CV_BGRA2GRAY10 Convert BGRA color to GRAY color
CV_RGBA2GRAY11 Convert RGBA color to GRAY color
CV_BGR2BGR56512 Convert BGR color to BGR565 color
CV_RGB2BGR56513 Convert RGB color to BGR565 color
CV_BGR5652BGR14 Convert BGR565 color to BGR color
CV_BGR5652RGB15 Convert BGR565 color to RGB color
CV_BGRA2BGR56516 Convert BGRA color to BGR565 color
CV_RGBA2BGR56517 Convert RGBA color to BGR565 color
CV_BGR5652BGRA18 Convert BGR565 color to BGRA color
CV_BGR5652RGBA19 Convert BGR565 color to RGBA color
CV_GRAY2BGR56520 Convert GRAY color to BGR565 color
CV_BGR5652GRAY21 Convert BGR565 color to GRAY color
CV_BGR2BGR55522 Convert BGR color to BGR555 color
CV_RGB2BGR55523 Convert RGB color to BGR555 color
CV_BGR5552BGR24 Convert BGR555 color to BGR color
CV_BGR5552RGB25 Convert BGR555 color to RGB color
CV_BGRA2BGR55526 Convert BGRA color to BGR555 color
CV_RGBA2BGR55527 Convert RGBA color to BGR555 color
CV_BGR5552BGRA28 Convert BGR555 color to BGRA color
CV_BGR5552RGBA29 Convert BGR555 color to RGBA color
CV_GRAY2BGR55530 Convert GRAY color to BGR555 color
CV_BGR5552GRAY31 Convert BGR555 color to GRAY color
CV_BGR2XYZ32 Convert BGR color to XYZ color
CV_RGB2XYZ33 Convert RGB color to XYZ color
CV_XYZ2BGR34 Convert XYZ color to BGR color
CV_XYZ2RGB35 Convert XYZ color to RGB color
CV_BGR2YCrCb36 Convert BGR color to YCrCb color
CV_RGB2YCrCb37 Convert RGB color to YCrCb color
CV_YCrCb2BGR38 Convert YCrCb color to BGR color
CV_YCrCb2RGB39 Convert YCrCb color to RGB color
CV_BGR2HSV40 Convert BGR color to HSV color
CV_RGB2HSV41 Convert RGB colot to HSV color
CV_BGR2Lab44 Convert BGR color to Lab color
CV_RGB2Lab45 Convert RGB color to Lab color
CV_BayerBG2BGR46 Convert BayerBG color to BGR color
CV_BayerGB2BGR47 Convert BayerGB color to BGR color
CV_BayerRG2BGR48 Convert BayerRG color to BGR color
CV_BayerGR2BGR49 Convert BayerGR color to BGR color
CV_BayerBG2RGB48 Convert BayerBG color to BGR color
CV_BayerGB2RGB49 Convert BayerRG color to BGR color
CV_BayerRG2RGB46 Convert BayerRG color to RGB color
CV_BayerGR2RGB47 Convert BayerGR color to RGB color
CV_BGR2Luv50 Convert BGR color to Luv color
CV_RGB2Luv51 Convert RGB color to Luv color
CV_BGR2HLS52 Convert BGR color to HLS color
CV_RGB2HLS53 Convert RGB color to HLS color
CV_HSV2BGR54 Convert HSV color to BGR color
CV_HSV2RGB55 Convert HSV color to RGB color
CV_Lab2BGR56 Convert Lab color to BGR color
CV_Lab2RGB57 Convert Lab color to RGB color
CV_Luv2BGR58 Convert Luv color to BGR color
CV_Luv2RGB59 Convert Luv color to RGB color
CV_HLS2BGR60 Convert HLS color to BGR color
CV_HLS2RGB61 Convert HLS color to RGB color
CV_BayerBG2BGR_VNG62 Convert BayerBG pattern to BGR color using VNG
CV_BayerGB2BGR_VNG63 Convert BayerGB pattern to BGR color using VNG
CV_BayerRG2BGR_VNG64 Convert BayerRG pattern to BGR color using VNG
CV_BayerGR2BGR_VNG65 Convert BayerGR pattern to BGR color using VNG
CV_BayerBG2RGB_VNG64 Convert BayerBG pattern to RGB color using VNG
CV_BayerGB2RGB_VNG65 Convert BayerGB pattern to RGB color using VNG
CV_BayerRG2RGB_VNG62 Convert BayerRG pattern to RGB color using VNG
CV_BayerGR2RGB_VNG63 Convert BayerGR pattern to RGB color using VNG
CV_BGR2HSV_FULL66 Convert BGR to HSV
CV_RGB2HSV_FULL67 Convert RGB to HSV
CV_BGR2HLS_FULL68 Convert BGR to HLS
CV_RGB2HLS_FULL69 Convert RGB to HLS
CV_HSV2BGR_FULL70 Convert HSV color to BGR color
CV_HSV2RGB_FULL71 Convert HSV color to RGB color
CV_HLS2BGR_FULL72 Convert HLS color to BGR color
CV_HLS2RGB_FULL73 Convert HLS color to RGB color
CV_LBGR2Lab74 Convert sBGR color to Lab color
CV_LRGB2Lab75 Convert sRGB color to Lab color
CV_LBGR2Luv76 Convert sBGR color to Luv color
CV_LRGB2Luv77 Convert sRGB color to Luv color
CV_Lab2LBGR78 Convert Lab color to sBGR color
CV_Lab2LRGB79 Convert Lab color to sRGB color
CV_Luv2LBGR80 Convert Luv color to sBGR color
CV_Luv2LRGB81 Convert Luv color to sRGB color
CV_BGR2YUV82 Convert BGR color to YUV
CV_RGB2YUV83 Convert RGB color to YUV
CV_YUV2BGR84 Convert YUV color to BGR
CV_YUV2RGB85 Convert YUV color to RGB
CV_BayerBG2GRAY86 Convert BayerBG to GRAY
CV_BayerGB2GRAY87 Convert BayerGB to GRAY
CV_BayerRG2GRAY88 Convert BayerRG to GRAY
CV_BayerGR2GRAY89 Convert BayerGR to GRAY
CV_YUV420i2RGB90 Convert YUV420i to RGB
CV_YUV420i2BGR91 Convert YUV420i to BGR
CV_YUV420sp2RGB92 Convert YUV420sp to RGB
CV_YUV420sp2BGR93 Convert YUV320sp to BGR
CV_YUV420i2RGBA94 Convert YUV320i to RGBA
CV_YUV420i2BGRA95 Convert YUV420i to BGRA
CV_YUV420sp2RGBA96 Convert YUV420sp to RGBA
CV_YUV420sp2BGRA97 Convert YUV420sp to BGRA
CV_YUV2RGB_YV1298 Convert YUV (YV12) to RGB
CV_YUV2BGR_YV1299 Convert YUV (YV12) to BGR
CV_YUV2RGB_IYUV100 Convert YUV (iYUV) to RGB
CV_YUV2BGR_IYUV101 Convert YUV (iYUV) to BGR
CV_YUV2RGB_I420100 Convert YUV (i420) to RGB
CV_YUV2BGR_I420101 Convert YUV (i420) to BGR
CV_YUV420p2RGB98 Convert YUV (420p) to RGB
CV_YUV420p2BGR99 Convert YUV (420p) to BGR
CV_YUV2RGBA_YV12102 Convert YUV (YV12) to RGBA
CV_YUV2BGRA_YV12103 Convert YUV (YV12) to BGRA
CV_YUV2RGBA_IYUV104 Convert YUV (iYUV) to RGBA
CV_YUV2BGRA_IYUV105 Convert YUV (iYUV) to BGRA
CV_YUV2RGBA_I420104 Convert YUV (i420) to RGBA
CV_YUV2BGRA_I420105 Convert YUV (i420) to BGRA
CV_YUV420p2RGBA102 Convert YUV (420p) to RGBA
CV_YUV420p2BGRA103 Convert YUV (420p) to BGRA
CV_YUV2GRAY_420106 Convert YUV 420 to Gray
CV_YUV2GRAY_NV21106 Convert YUV NV21 to Gray
CV_YUV2GRAY_NV12106 Convert YUV NV12 to Gray
CV_YUV2GRAY_YV12106 Convert YUV YV12 to Gray
CV_YUV2GRAY_IYUV106 Convert YUV (iYUV) to Gray
CV_YUV2GRAY_I420106 Convert YUV (i420) to Gray
CV_YUV420sp2GRAY106 Convert YUV (420sp) to Gray
CV_YUV420p2GRAY106 Convert YUV (420p) to Gray
CV_YUV2RGB_UYVY107 Convert YUV (UYVY) to RGB
CV_YUV2BGR_UYVY108 Convert YUV (UYVY) to BGR
CV_YUV2RGB_Y422107 Convert YUV (Y422) to RGB
CV_YUV2BGR_Y422108 Convert YUV (Y422) to BGR
CV_YUV2RGB_UYNV107 Convert YUV (UYNY) to RGB
CV_YUV2BGR_UYNV108 Convert YUV (UYNV) to BGR
CV_YUV2RGBA_UYVY111 Convert YUV (UYVY) to RGBA
CV_YUV2BGRA_UYVY112 Convert YUV (VYUY) to BGRA
CV_YUV2RGBA_Y422111 Convert YUV (Y422) to RGBA
CV_YUV2BGRA_Y422112 Convert YUV (Y422) to BGRA
CV_YUV2RGBA_UYNV111 Convert YUV (UYNV) to RGBA
CV_YUV2BGRA_UYNV112 Convert YUV (UYNV) to BGRA
CV_YUV2RGB_YUY2115 Convert YUV (YUY2) to RGB
CV_YUV2BGR_YUY2116 Convert YUV (YUY2) to BGR
CV_YUV2RGB_YVYU117 Convert YUV (YVYU) to RGB
CV_YUV2BGR_YVYU118 Convert YUV (YVYU) to BGR
CV_YUV2RGB_YUYV115 Convert YUV (YUYV) to RGB
CV_YUV2BGR_YUYV116 Convert YUV (YUYV) to BGR
CV_YUV2RGB_YUNV115 Convert YUV (YUNV) to RGB
CV_YUV2BGR_YUNV116 Convert YUV (YUNV) to BGR
CV_YUV2RGBA_YUY2119 Convert YUV (YUY2) to RGBA
CV_YUV2BGRA_YUY2120 Convert YUV (YUY2) to BGRA
CV_YUV2RGBA_YVYU121 Convert YUV (YVYU) to RGBA
CV_YUV2BGRA_YVYU122 Convert YUV (YVYU) to BGRA
CV_YUV2RGBA_YUYV119 Convert YUV (YUYV) to RGBA
CV_YUV2BGRA_YUYV120 Convert YUV (YUYV) to BGRA
CV_YUV2RGBA_YUNV119 Convert YUV (YUNV) to RGBA
CV_YUV2BGRA_YUNV120 Convert YUV (YUNV) to BGRA
CV_YUV2GRAY_UYVY123 Convert YUV (UYVY) to Gray
CV_YUV2GRAY_YUY2124 Convert YUV (YUY2) to Gray
CV_YUV2GRAY_Y422123 Convert YUV (Y422) to Gray
CV_YUV2GRAY_UYNV123 Convert YUV (UYNV) to Gray
CV_YUV2GRAY_YVYU124 Convert YUV (YVYU) to Gray
CV_YUV2GRAY_YUYV124 Convert YUV (YUYV) to Gray
CV_YUV2GRAY_YUNV124 Convert YUV (YUNV) to Gray
CV_RGBA2mRGBA125 Alpha premultiplication
CV_mRGBA2RGBA126 Alpha premultiplication
CV_COLORCVT_MAX127 The max number, do not use

See Also