detect color space with openCV -


How can I see the color space of my image with openCV?

I'm sure that it is RGB before converting it to another using CVVTTlor () function

thanks

Unfortunately, OpenCV does not provide any indication of any color sign in the IplImage structure, so if you blindly lift an IplImage from anywhere There is no way to find out how it was encoded. In addition, no algorithm can definitely tell you that the image should be defined as HSV vs. RGB - this machine is just a bunch of bytes (should be HSV or RGB?) I tracked you I recommend wrapping your IplImages in any other structure (or template with a C ++ class!) To help you keep it in. If you are really desperate and you only need one If you are working with some types of images (external view, office, face, etc.) then you can try to calculate some figures on your images (like creating histogram figures for natural RGB images and some natural HSV images ), And then try to classify your completely weird image, which is close to your image.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -