Peihong Guo's CSCE 646 Projects

Project 03

Read/Display & Write Images

Source code and makefile: pr03.zip

The code handles PPM file format P1-P6. Samples images of type P1 to P6 are included in the zip file.


This is the cube image. (cube.ppm, type P6)


This is the blackbuck image. (blackbuck.ppm, type P3)


This is the greyscale blackbuck image. (blackbuck.pgm, type P5)


This is the binary blackbuck image. (blackbuck.pbm, type P4)

Other images I tried:


This is the ray tracing image. (raytracing.ppm, type P6)


This is the still life image. (stilllife.ppm, type P6)


This is the geometry image. (geometry.ppm, type P6)