Search code examples
opencv3.0

What are color conversion codes ending in FULL for?


Several color conversion codes in OpenCV 3.2 have two versions, one ending in _FULL, and one not, e.g.:

  cv::COLOR_BGR2HSV_FULL = 66,
  cv::COLOR_RGB2HSV_FULL = 67,
  cv::COLOR_BGR2HLS_FULL = 68,
  cv::COLOR_RGB2HLS_FULL = 69,
  cv::COLOR_HSV2BGR_FULL = 70,
  cv::COLOR_HSV2RGB_FULL = 71,
  cv::COLOR_HLS2BGR_FULL = 72,
  cv::COLOR_HLS2RGB_FULL = 73, 

What is the difference between the two? I couldn't find it in the documentation. Specifically, when I use a color conversion code like in:

converted_img = cv2.cvtColor(img, cv2.COLOR_BGR2HLS)

Thanks!


Solution

  • The result will be different in H dimension.

    According to my observation, the options with "_FULL" suffix has a larger H range than the ones without it. What's more, the L and S dimension should be the same.