DPCM Image Compression and Decompression

This is a program I built in C for the class "Image Compression" (CS4481) at Western University.

This project is a collection of programs I built for image compression and decompression.
The compression program takes the provided pgm (portable gray map) image and compresses it using lossless DPCM encoding and then writes it to a file.
The decompression program uses the encoded file created by the compression program and decompresses it into an exact copy of the original image that was compressed.
The compare pgm images program is used to check if both images are identical. This used to confirm that lossless compression has been achieved.

Project Code