Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Plot and histrogram

Hi,

I have the next question, after doing some operation I obtained a matrix from an image that I want to plot in an histogram. I used the next function. I am using python +opencv3.0.0:

hist = cv2.calcHist([result],[0],None,[256],[0,256])

But it gives me the following error:

TypeError: images data types = 17 is not supported

What's wrong??? Any ideas???

Thanks in advance.