This was the coursework for comp1921 - programming project. We had to code a series of utilities for .pgm files and create a makefile and a test script. PgmEcho will just create an exact replica of the input image. pgmCompare will logically compare two .pgm files. Pgmb2a and a2b converts .pgm files between ASCII to Binary. PgmReduce will reduce the .pgm file by the given reduction factor.
- make pgmEcho
- ./pgmEcho <input_image.pgm> <output_image.pgm>
- make pgmComp
- ./pgmComp <image_1.pgm> <image_2.pgm>
- make pgma2b
- ./pgma2b <ascii_image.pgm> <binary_image.pgm>
- make pgmb2a
- ./pgma2b <binary_image.pgm> <ascii_image.pgm>
- make pgmReduce
- ./pgmReduce <input_image.pgm> <output_image.pgm>
NOTE: The reduction factor must be a positive integer > 0
- make all
- make clean