I am doing a computer vision based project in open cv.I want to plot the histograms each channel of a BGR image in the same window.I did it by splitting the image in 3 channels and then applying calcHist
to each. Is there any way to do it by using the function only once and changing the parameters .Also I did not properly understand the const int* channels
parameter in calcHist
function.
Asked
Active
Viewed 743 times
0

πάντα ῥεῖ
- 1
- 13
- 116
- 190

user545714
- 1
- 1
- 1
-
sometimes separating RGB is not a good idea in DIP/CV in such case take a look at [HSV histogram showed as 3D graph](http://stackoverflow.com/a/29286584/2521214) – Spektre Jun 28 '16 at 05:35
1 Answers
1
take a look at the offical tutorial about plotting histogram of the image. here is the link for calcHist_Demo.cpp

sturkmen
- 3,495
- 4
- 27
- 63