RGB values of Image pixel using JavaCV

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

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

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

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


  1. Thank u very much i was neeeeeeeeeeeeeeeeeed this

  2. I recently stumbled on Allison Freeman's One Minute Herpes Cure, in heavy rotation throughout various social media networking sites. The ebook is catching on very quickly via word of mouth, and is receiving a considerable amount of attention across varied media resources.
    herpes cure