HSV values of Image pixel using JavaCV

This post will explain how to get HSV color space values of Image pixel using JavaCV.
For JavaCV setup on Windows, follow link below

If you want to access RGB color space values, then refer to link below

Pixel values in HSV color space are often required in Image processing. Following gist demonstrates how to access and print pixel values in HSVcolor space. We first convert image from RGB color space to HSV color space using 'cvCvtColor()''. We can call 'cvGet2D()' function to access image matrix and use it get pixel values at desired location.

This will print HSV values in console. This code comes really handy while using manual threshold.
You can fork me on github for complete project of this code.


    I can’t believe my genital herpes is really cured, oh is by this time last year I start feeling bad about my life, I feel pain everyday of my life am very happy now that am really cured I couldn't have do this on my own I wish is not God that help me with my herpes I was searching the internet about this sickness last 3month when I found about great doctor aye, the man that keep his words I write the man email about my problem immediately I get a reply from him asking me to fill a form which I immediately did and send back to him after some mins he reply me that he have work on my cure that I need to provide some materials, which can enable him to work on my cure which I did on the next day of it, after some hours he inform me that he have getting the things needed for the cure and he is about to go on with the curing spell he called me again after 50mins that he is done with the cure that I should check my body and also go for test I cant believe I was negative a big thanks to him am very happy now with my family you can also get your self cured too from this sickness by contact him through .AYESPELLALTER@GMAIL.COM

  2. We all knows that the HERPES is a highly contagious disease and can easily spreads throgh skin to skin contact or while having sexual exposure to HERPES Simplex Virus . many scientist believe that HERPES Simplex Virus can't be cured yet that's why they claims that this is a type of chronic disease. But you shouldn't underestimate the power of nature. if it couldn't be able to cure your HERPES Simplex Virus then no other ways can cure herpes. but yes if you choose natural remedy than this atleast boost up your immune system and you can better fight with herpes.

  3. Am very happy to tell everyone about the greatest spell caster of all time Dr Henry of PERMANENT SPELL CAST. I lost contacts with my Husband few months after we broke due to some quarrels we had, i searched for him for reconciliation, but all my efforts was lost and i turned hopeless until i came in contact with Dr Henry, who helped me with his voodoo spell to locate where my husband was and also helped me cast a love spell on him. The Dr told me that my Husband will come back to me after 4 days of the spell, and i was so surprised that it all happened as the Dr said it will, my husband came back to me for a reunion after 4 days of the spell. Now am very happy with my family, and my husband has loved me more than ever, since the spell was cast on him by Dr Henry.You can also get help from this Great Dr on Permanentspellcast@gmail.com or on Whatssapp 2348100663964

  4. Hello Everybody,
    My name is Mrs Sharon Sim. I live in Singapore and i am a happy woman today? and i told my self that any lender that rescue my family from our poor situation, i will refer any person that is looking for loan to him, he gave me happiness to me and my family, i was in need of a loan of S$250,000.00 to start my life all over as i am a single mother with 3 kids I met this honest and GOD fearing man loan lender that help me with a loan of S$250,000.00 SG. Dollar, he is a GOD fearing man, if you are in need of loan and you will pay back the loan please contact him tell him that is Mrs Sharon, that refer you to him. contact Dr Purva Pius,via email:(urgentloan22@gmail.com) Thank you.


    1. Name Of Applicant in Full:……..
    2. Telephone Numbers:……….
    3. Address and Location:…….
    4. Amount in request………..
    5. Repayment Period:………..
    6. Purpose Of Loan………….
    7. country…………………
    8. phone…………………..
    9. occupation………………
    11.Monthly Income…………..

    Email Kindly Contact: urgentloan22@gmail.com

  5. I want to say a big thanks to the Woman in Ghana Accra who is behind my smiles today by reuniting me and my Husband after he divorced me, Mama Anita who is a very powerful spell caster brought my husband back to me and made him beg me to forgive him for everything he did to me, i really missed him so much and always loved him. Am happy to have him back in my life and all my appreciations goes to Mama Anita for helping me and bringing my husband back to my life with his great powers. My friends out there who are going through marriage problems and divorce issues i assure you that you can get your lover back to your life with the help of Mama Anita. You can reach him on: (mamaanitaspellcraft@solution4u.com and mamaanitaspellcraft.org@gmail.com or whatsapp +233553866486) She has the best solution to relationships and marriage issues.