Convert RGB to HSV 3 bytes

James 21 Reputation points
2021-06-04T02:15:06.82+00:00

Hey guys, So I have been messing arround with color spaces and while I have got code that will allow me to convert a RGB value to a HSV ranges 350, 100, 100
However I have seen that openCV and apparently googles color picker converts it to ranges that are compatible to bytes, 180, 255, 255.

I have been searching and experimenting in vain to try and recreate the method openCV is using.
If anyone has any idea how to do the conversion from RGB to HSV 180,255,255 and back to RGB 255,255,255, I would really appreciate it :)

Thanks guys!

Community Center | Not monitored
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.