Sunday, July 17, 2011

a histogram is just a bar graph

You're in a room with a bunch of people, and you ask them their birth month. 4 people were born in January, 7 were born in February, etc etc. So you make a bar graph of the answers you gather.

Posted Image

You're in a room with a bunch of pixels, and you ask what their gray values are. 0 is black, 255 is white, and all the grays in between. So you make another bar graph.  Except this time the bars are thin, and there are no gaps between them or the graph will go off the screen.

Posted Image

No, they didn't invent this for digital photography :)

(Color histograms slightly more complicated, but that's another blog post...)

1 comment: