can anyone connect me or give an example code in C / C ++ that creates histograms for color image (RGB) and displays them?
The following are very good guides for drawing a bar chart with an open CV:http://aishack.in/tutorials/drawing-histograms-opencv/
Codes are easy to follow!
The OpenCV 2.3 documentation has a new guide for building a histogram for a color image .
Ive, :
http://opencv-code.com/tutorials/drawing-histograms-in-opencv/
opencv has built-in histograms. The documentation shows an example: http://opencv.willowgarage.com/documentation/cpp/histograms.html
I learned from them, they could help →
http://docs.opencv.org/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.html
and
http://docs.opencv.org/doc/tutorials/imgproc/histograms/histogram_comparison/histogram_comparison.html