1D Histogram with OpenCV C++

This post is also available in: Spanish

I’d like to say again that the documentation of the OpenCV is very poor.

This is a histogram of 1D for an image of 8 bit single channel (grayscale).

The code is commented for an easier understanding.

I used the same image to obtain the histogram as i made it in Python

1D histogram

The advantage of the opencv histograms functions is that you can obtain a histogram of n – dimensions.

Posted on December 2, 2005 at 9:01 pm by Isaias · Permalink
In: Software

Leave a Reply