This library contains functions that are required to read any PGM format image into a 2-D array. It also has functions to calculate the histgram and also to save the histogram as a PGM image of any given size.