To compile:

  make

To run:

  ./histogram file.ppm file.hist 1

You can use any image viewer (like eog) to view the ppm files.

Examples:

  ./histogram moon-small.ppm moon-small.hist 1

ACKNOWLEDGEMENTS

moon-small.ppm, phobos.ppm, moon-large.ppm and earth.ppm are courtesy
NASA, the latter two from the Project Apollo Archive.

PPMB_IO is (c) John Burkardt, and is used under the LGPL.

300px-Unequalized_Hawkes_Bay_NZ.ppm is from Wikipedia.

flood.ppm is from University of Regina.


