Reputation: 23
Good morning, I was reviewing in python, along with Opencv, conversions to formats of different colors, but I do not find the HSI format, with the cv2.cvtColor()
function.
Does anyone know if it matches the COLOR_BGR2HLS
parameter?
Thank you for your attention
Upvotes: 0
Views: 4247
Reputation: 21203
According to the Wikipedia article given HERE, the HSV, HLS and HSI color space terminology can be used interchangeably.
There is another option available in OpenCV as well cv2.cvtColor(img1,cv2.COLOR_BGR2HSV)
.
If you work out both the options, the resulting image would appear slightly different as in the following:
Using HSV:
Using HLS:
Now if you split the channels of these images (to split use cv2.split()
) and analyze them:
Work it out for an image and you will see for yourself.
HSV, HLS and HSI are similar not exactly same
Upvotes: 1