histogram

you must have heard this term in your schools. here its also the same.

Histogram of an image gives the pixel distribution or probability of pixel distribution.

Distribution is an obvious term meaning that how many times a pixel is repeating.

It can be represented as table or graph, but graphical representation is generally preferred

because of its easy readability.

Drawing histogram in very easy but since number of data type is large so its bit difficult.

So as a wise people we will have a program to draw histogram.

This code snippet stores the probability of different pixels corresponding to the pixel distribution in a file.

Histogram can be obtained by plotting the file.

Image

and its histogram