PNM image format decoder.

Namespace:  AForge.Imaging.Formats
Assembly:  AForge.Imaging.Formats (in AForge.Imaging.Formats.dll) Version: (


public class PNMCodec : IImageDecoder


The PNM (an acronym derived from "Portable Any Map") format is an abstraction of the PBM, PGM and PPM formats. I.e. the name "PNM" refers collectively to PBM (binary images), PGM (grayscale images) and PPM (color image) image formats.

Image in PNM format can be found in different scientific databases and laboratories, for example Yale Face Database and AT&T Face Database.

Note:Only PNM images of P5 (binary encoded PGM) and P6 (binary encoded PPM) formats are supported at this point.

Note:The maximum supported pixel value is 255 at this point.

Note:The class supports only one-frame PNM images. As it is specified in format specification, the multi-frame PNM images has appeared starting from 2000.

Inheritance Hierarchy


See Also