Reads standard image files (.jpeg, .gif, .png, .bmp, .wbmp) and provides access to the pixels in the image.
Factory which creates a ColorField holding a single static color image read in from a file.
Factory which creates a ScalarField holding a single static grayscale image read in from a file.
Reader of PGM (portable gray map) image files.
Reader of PGM (portable gray map) image files.
This will only handle "raw" PGM files where the pixels are unsigned bytes and will only read the first image in the file. This could easily be extended to read PGM files with multiple images in them.
Reads standard image files (.jpeg, .gif, .png, .bmp, .wbmp) and provides access to the pixels in the image. The "grayscale" method converts the image to a 2D pixel array with each pixel scaled to the interval [0, 1]; this method uses the green channel information as an approximation of black and white.