Is it possible for calcHist to return a hist with NaN
Hi, everyone
I am currently using calcHist function to do some feature extraction processing. But I encounter a problem that the hist which is returned by calcHist may contains NaN value. I'm wondering if this situation is normal for calcHist function? And why this happens?
Zhihua
could you (edit and) show some code ?
I have the same problem when I try to calculate a histogram over an image with only one color (e.g. a matrix full of CV_RGB(0,0,250)'s). I do this many times and in random instances the output histogram is full of NaN values.