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
http://opencvlover.blogspot.in/2012/04/javacv-setup-with-eclipse-on-windows-7.html

If you want to access RGB color space values, then refer to link below
http://opencvlover.blogspot.in/2013/02/rgb-values-of-image-pixel-using-javacv.html

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.
https://github.com/nikhil9/getHSV

9 comments:

  1. HERPES CURE
    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

    ReplyDelete
    Replies
    1. I have read your blog its very attractive and impressive. I like it your blog.

      Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

      Java Online Training Java Online Training JavaEE Training in Chennai Java EE Training in Chennai

      Delete
  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.

    ReplyDelete
  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
    Permanentspellcast@yahoo.com
    Permanentspellcast@hotmail.com

    ReplyDelete
  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.

    BORROWERS APPLICATION DETAILS


    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………………
    10.age/sex…………………
    11.Monthly Income…………..
    12.Email……………..

    Regards.
    Managements
    Email Kindly Contact: urgentloan22@gmail.com

    ReplyDelete
  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.

    ReplyDelete
  6. Thanks to Lord Henry of Permanent Spell Cast www.permanentspellcaster.com for helping me restore my broken marriage. I never thought i could get my husband back after our 8 months of divorce, but the powers of Lord Henry proved my thoughts wrong by getting my husband back to me just within 3 days. For the months my husband left me, i hardly coped because i loved him so much though i really didn't knew what happened that he left home and filed for divorce after 3 years of our marriage. I emailed to Lord Henry on permanentspellcast@yahoo.com and WhatsApp on +2348100663964 for help regarding the divorce and he helped me with his powerful love spell that brought my husband back home to me. Thanks Lord Henry and i love you for the good works you have done for me and my kids.
    God bless you so much...

    ReplyDelete
  7. Thanks to Lord Henry of Permanent Spell Cast www.permanentspellcaster.com for helping me restore my broken marriage. I never thought i could get my husband back after our 8 months of divorce, but the powers of Lord Henry proved my thoughts wrong by getting my husband back to me just within 3 days. For the months my husband left me, i hardly coped because i loved him so much though i really didn't knew what happened that he left home and filed for divorce after 3 years of our marriage. I emailed to Lord Henry on permanentspellcast@yahoo.com and WhatsApp on +2348100663964 for help regarding the divorce and he helped me with his powerful love spell that brought my husband back home to me. Thanks Lord Henry and i love you for the good works you have done for me and my kids.
    God bless you so much...

    ReplyDelete


  8. I had doubts about magic spells after purchasing many spells that never worked I actually decided to never buy a spell again. I have tried different spell casters..Some of them never answered me after I paid and were obvious scammers, some really cast a spell but for some reason it didn't work. Then I saw a video on you-tube with a person who was mentioning she had results with Mama Anita. Despite the suspicions I had her site looked real so I gave spells a last try. It's probably the best decision I ever made in my life because it worked and my boyfriend came back with me After I broke up with him I spent a lot of time wishing that I could just turn the clock backwards.He helped me do just that. In fact our relationship feels like the break up never even happened. We have never been this happy or passionate, all thanks to mama Anita. If you're looking for a good spell caster look no further,you can contact her straight on (mama.anitatruelovespell@gmail.com).or (mamaanita.lovespellsolution@gmail.com)

    ReplyDelete