- Michael Todd (U23540223)
- Corne de Lange (U23788862)
- Cobus Botha (U23556502)
This project involves processing PPM (Portable Pixmap) images using assembly language. The tasks include reading a PPM file, computing CDF (Cumulative Distribution Function) values, applying histogram equalization, and writing the processed image back to a PPM file.
This file contains the code to read a binary P6 format PPM file and create a linked pixel structure. Each pixel connects to adjacent pixels (above, below, left, right).
Key functions:
readPPM
: Reads the PPM file and initializes the pixel structure.skipComments
: Skips comment lines in the PPM file.
This file contains the code to compute the CDF values from the pixel data.
Key functions:
computeCDFValues
: Computes the histogram and CDF values for the image.
This file contains the code to apply histogram equalization to the image using the computed CDF values.
Key functions:
applyHistogramEqualization
: Applies histogram equalization to the pixel data.
This file contains the code to write the processed image data back to a PPM file.
Key functions:
writePPM
: Writes the PPM header and pixel data to the output file.