Important things in the source code are the part of split rgb mat to vector[3] and drawing part.
Read the code carefully, so then you can understand easliy. ^^
input
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSh9FnfpKTrru9OYH234LOZLX93r7y5FLjGFPkdWhgZ6gRtwwEtvNCoBlos7Z9HhMT6rn3n2nVIy28AV7tRXbMiiAl0uuXpZ6lGi-3ntWbCzoEr0isk1k0jgUa5jy5upSfrppVM8iYpqc/s400/goonise.png)
the result of rgb histogram
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGfL1dCXLYxPr4XOsuLabR4aLK6f8hRG_T7q-MffbyliJzfOFYNXN2zseKB71XeEKqXTxwMJ7t4YEQPJLNsLPR6CcXzHFEkT3ToErcE4vV7OlT8sIlYXKB5XfUtQncofnB0f6QZ1ZF7ss/s320/rgbhisto.png)
<gist code start>
<gist code end>
reference : https://docs.opencv.org/2.4/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.html
No comments:
Post a Comment