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.
to compile : g++ main.cpp -o test
to run : ./test refImage.pgm b.pgm
refImage.pgm is the input file
b.pgm is the output file