Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The histogram is a float-matrix, i.e. you need to call it with .at<float>. Note, the histogram is also normalized in the end, i.e. contains only values between 0 and 1.