Package

cogio

imagefiles

Permalink

package imagefiles

Visibility
  1. Public
  2. All

Type Members

  1. class ImageFileReader extends AnyRef

    Permalink

    Reads standard image files (.jpeg, .gif, .png, .bmp, .wbmp) and provides access to the pixels in the image.

    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.

Value Members

  1. object ColorImage

    Permalink

    Factory which creates a ColorField holding a single static color image read in from a file.

  2. object GrayscaleImage

    Permalink

    Factory which creates a ScalarField holding a single static grayscale image read in from a file.

  3. object PGMImageFile

    Permalink

    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.

Ungrouped