Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Documentation for HSV color space in OpenCV

Tags:

opencv

colors

The HSV-color space that OpenCV uses seems to be a model that forms a hexagonal pyramid according to cvtColor and Wikipedia.

The article by Smith that is referenced on Wikipedia seems to agree as well with the transformation from RGB to HSV when it comes to S and V, but not for H.

Does anyone have a suggestion of a good source to cite for the model that is used in OpenCV? The source that OpenCV bases the color transformation on would be great if anyone knows.

Thank you.

EDIT:

I seem to have been unclear. I know how the OpenCV tranformation works. I was wondering if there exist another source (a book perhaps) that uses the same color transformation as that OpenCV uses. I guess that they based their transformation on some other source. But perhaps this is wrong and the only source is OpenCV.

like image 247
flafffl Avatar asked Feb 03 '26 08:02

flafffl


2 Answers

In this link you have some explanation of HSV color model in OpenCV, I think it is quite useful.

And just in case you don't know yet, the online documentation of OpenCV also explains everything you need to know about classes and functions. Here you have a link to the miscellaneous image transformations. Hope it helps.

like image 164
Jav_Rock Avatar answered Feb 06 '26 01:02

Jav_Rock


I found McConells book http://books.google.se/books?id=H5UVcCYSbXcC, which seems to describe almost the same HSV color model as OpenCV.

like image 36
flafffl Avatar answered Feb 06 '26 00:02

flafffl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!