Open Computer Vision

June 14, 2009

Image Enhancement Using HSV Color Space

Filed under: OpenCV — Abhijeet @ 8:05 am

This site has moved to novcode.com

Advertisements

8 Comments »

  1. HI DEAR I M STUDENT AND I WORKING IN IMAGE PROCESSING I NEED A CODE OF HAND GESTURE RECOGNITION USING HSV IF ANY ONE HAVE ANYTHING PLZ SHARE, WILL REMAIN THANKFUL

    Comment by Aslam — January 5, 2010 @ 8:03 am | Reply

    • Typical SLACKER question !!!

      Comment by blah — March 4, 2010 @ 3:56 pm | Reply

  2. Hi,

    I have written a better RGB2HSV conversion function, since the OpenCV function only uses Hues in the range 0 to 179 when it could be using 0 to 255.
    Its available here:
    http://www.shervinemami.co.cc/colorConversion.html

    Cheers,
    Shervin Emami.

    Comment by Shervin Emami — June 9, 2010 @ 7:06 am | Reply

    • Well it is really great that you have done some great work but the main problem is that the it should actually go from 0-360 which means a full circle//….but because of the 8bit limitation…we have to give 2 bytes to this and not one byte …while writing the program itself i thought of doing this …nyways….i do not think that there would be a great difference….not more than about a 15%.

      Comment by colouredpages — June 12, 2010 @ 4:34 am | Reply

      • Hi,
        Yes you are right that it would be better if Hues stored all 360 instead of 180. In fact you could still store a pixel in 32-bits like that, so that H was the first 2 bytes, S is next byte and V is next byte, so that it still fits efficiently in a 32-bit integer. Considering that pixels are often stored in 32-bits such as BGRA and yet the byte ‘A’ is ignored, it would work pretty well 🙂

        About the difference between using 180 Hues and 256 Hues, 180/256 = 0.70, so roughly 30% of information would be lost in the conversion from RGB -> HSV -> RGB, and I’m sure most researchers that are busy trying to improve their algorithms by a few percent would be very happy with a 30% improvement!

        Cheers,
        Shervin Emami.

        Comment by Shervin Emami — June 22, 2010 @ 3:05 am

  3. Hi I am working in a proyect but in pyhon, can you explain me how can I do this in pyhon?

    Comment by pablo oliva — February 6, 2012 @ 7:17 pm | Reply

  4. Does increase saturation means increasing the contrast and increasing the value means increasing the intensity/brightness?

    Comment by Donny — April 4, 2012 @ 2:17 pm | Reply

  5. hi
    I am doing the image enhancement with HSV color model in matlab.
    so if you have anything to explain ……………plz help me.

    Comment by deepti — March 23, 2014 @ 7:48 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: