Skip to content
firepick1 (Chromebook Ubuntu) edited this page Apr 25, 2014 · 4 revisions

Convert image from one color space to another.

  • code CV_BGR2GRAY is default. See below for additional color codes.
  • dstCn Output channels (0:auto)

Example

{"op":"cvtColor", "code":"CV_BGR2GRAY", "dstCn":0}
Color Codes
CV_BayerBG2BGR
CV_BayerBG2BGR_VNG
CV_BayerBG2GRAY
CV_BayerBG2RGB
CV_BayerBG2RGB_VNG
CV_BayerGB2BGR
CV_BayerGB2BGR_VNG
CV_BayerGB2GRAY
CV_BayerGB2RGB
CV_BayerGB2RGB_VNG
CV_BayerGR2BGR
CV_BayerGR2BGR_VNG
CV_BayerGR2GRAY
CV_BayerGR2RGB
CV_BayerGR2RGB_VNG
CV_BayerRG2BGR
CV_BayerRG2BGR_VNG
CV_BayerRG2GRAY
CV_BayerRG2RGB
CV_BayerRG2RGB_VNG
CV_BGR2BGR555
CV_BGR2BGR565
CV_BGR2BGRA
CV_BGR2GRAY
CV_BGR2HLS
CV_BGR2HLS_FULL
CV_BGR2HSV
CV_BGR2HSV_FULL
CV_BGR2Lab
CV_BGR2Luv
CV_BGR2RGB
CV_BGR2RGBA
CV_BGR2XYZ
CV_BGR2YCrCb
CV_BGR2YUV
CV_BGR5552BGR
CV_BGR5552BGRA CV_BGR5552RGBA
CV_BGR5552GRAY
CV_BGR5552RGB
CV_BGR5652BGR
CV_BGR5652BGRA
CV_BGR5652GRAY
CV_BGR5652RGB
CV_BGR5652RGBA
CV_BGRA2BGR
CV_BGRA2BGR555
CV_BGRA2BGR565
CV_BGRA2GRAY
CV_BGRA2RGB
CV_BGRA2RGBA
CV_GRAY2BGR
CV_GRAY2BGR555
CV_GRAY2BGR565
CV_GRAY2BGRA
CV_GRAY2RGB
CV_GRAY2RGBA
CV_HLS2BGR
CV_HLS2BGR_FULL
CV_HLS2RGB
CV_HLS2RGB_FULL
CV_HSV2BGR
CV_HSV2BGR_FULL
CV_HSV2RGB
CV_HSV2RGB_FULL
CV_Lab2BGR
CV_Lab2L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