Programming Projects in C
for students of
Engineering, Sciences and Mathematics
Rouben Rostamian
2014

Resources for Project Image I/O

Each of the following thumbnail images is a link to a larger 512×512 PGM or PPM image, except for the rightmost ones which are 256×512. Click on a thumbnail to download the image. The details of how to download depends on your browser.

profile.pgm anonymous2.pgm aya_matsuura.pgm brian_kernighan.pgm mandrill.pgm megumi_oishi.pgm reese_witherspoon.pgm vivian.pgm coffeebreak-256x512.pgm
profile.ppm anonymous2.ppm aya_matsuura.ppm brian_kernighan.ppm mandrill.ppm megumi_oishi.ppm reese_witherspoon.ppm vivian.ppm coffeebreak-256x512.ppm

Testing with the non-square rightmost image will help you verify that you have not mixed up the row and column indices in your program.

If you have a large enough screen to display a 512×1024 image, you may want to try out the following as well. [Image from Stockvault used with permission]

profile-512x1024.pgm profile-512x1024.ppm

None of the images above have comments in their header sections. The following one does. If you apply the program in image-io-test-0.c of Listing 14.10 (page 130) to it, the output file won't be identical to the input file since our read_image() discards header comments. The images, however, would be identical.

comments.pgm

Notes and errata



Programming Projects in C Valid HTML 5 Valid CSS