computer-graphics-raster-images
computer-graphics-raster-images copied to clipboard
ppm file
For gray images, I used "p2" magic number in the ppm header, but I found that this kind of file is actually called the PGM files and won't be able to open by ppm viewers (like http://www.cs.rhodes.edu/welshc/COMP141_F16/ppmReader.html). Is it okay for us to use "p2" magic number or should we use "p3" for gray images?