Creating a real-time histogram of webcam input: Issue

Hello,

Trying to generate a histogram from my real-time webcam input. The video is transformed to grayscale and I’m trying to create a histogram from it.

For this, I try to use the “calcHist” function from the ofxCv library. When I do it with a still image it works, however when I try the same code with my camera input it gives the error; “no matching function for call to calcHist()”

Does anyone know where I should look for this?

Thank you very much!

Hi,
can you post the code you are using?

Hi Roy, Solved the problem myself. I made 2 stupid mistakes, the first one being that I was not updating it correctly, the second one being that I passed it a faulty “range” to operate in

Hey,
good to know.