PAM graphics format

PAM graphics format

The PAM ("Portable Arbitrary Map"[1]) graphics format of the Netpbm package generalises all the features of the previous formats (PBM, PGM and PPM) and provides for extending them. As well as width, height and maximum value, which are found in the older formats, PAM defines two new attributes: depth and tuple type.

The depth attribute defines the number of channels in the image, such as 1 for greyscale images and 3 for RGB images. The tuple type attribute specifies what kind of image the PAM file represents, thus enabling it to stand for the older Netpbm formats, as well as to be extended to new uses. For example, an image with a tuple type of GRAYSCALE is equivalent to PGM (portable graymap).

Contents

Fundamental differences from the older formats

The header for the PAM file format begins with P7, and (unlike in the other formats) ends in an explicit close: ENDHDR.

There is no plain (human-readable, ASCII-based) version of PAM. PAM files are always binary, and attempts to use the switch -plain with Netpbm programs that produce PAM output results in an error message.

For the black-and-white version of PAM (depth 1, tuple type BLACKANDWHITE), corresponding to PBM, PAM uses one byte per pixel, instead of PBM’s use of one bit per pixel (packing eight pixels in one byte). Also, the value 1 in such a PAM image stands for white (“light on”), as opposed to black in PBM (“ink on”).

Transparency

All of the basic tuple types (BLACKANDWHITE, GRAYSCALE, and RGB) have a variant with an opacity channel. The tuple type is created by appending "_ALPHA" as a suffix to the base tuple type. For example tuple type RGB_ALPHA (with depth 4) serves for RGBA images, which previously required the use of a separate PGM image for the opacity channel.

Extensions

PAM's tuple-type mechanism allows for many extensions. In theory, PAM can be extended to represent colour models like CMYK, and even non-graphical information arrays.

See also

Notes and references

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • PAM — or PAM may refer to: Contents 1 Companies 2 Organisations 3 Military …   Wikipedia

  • Comparison of graphics file formats — This is a comparison of image file formats. General Ownership of the format and related information. Format Full name Owner Based Format File extension MIME type Application Patented Abc Advanced Bitonal Compression LEAD Technologies .abc …   Wikipedia

  • Netpbm format — Portable pixmap Filename extension .ppm, .pgm, .pbm, .pnm Internet media type image/x portable pixmap, graymap, bitmap, anymap all unofficial Developed by Jef Poskanzer Type of format Image file formats …   Wikipedia

  • Netpbm — Developer(s) Bryan Henderson Stable release 10.40 / September 26, 2007 Written in C, Perl, Unix Shell Operating system …   Wikipedia

  • Abkürzungen/Computer — Dies ist eine Liste technischer Abkürzungen, die im IT Bereich verwendet werden. A [nach oben] AA Antialiasing AAA authentication, authorization and accounting, siehe Triple A System AAC Advanced Audio Coding AACS …   Deutsch Wikipedia

  • Liste der Abkürzungen (Computer) — Dies ist eine Liste technischer Abkürzungen, die im IT Bereich verwendet werden. A [nach oben] AA Antialiasing AAA authentication, authorization and accounting, siehe Triple A System AAC Advanced Audio Coding AACS …   Deutsch Wikipedia

  • Liste von Abkürzungen (Computer) — Dies ist eine Liste technischer Abkürzungen, die im IT Bereich verwendet werden. Inhaltsverzeichnis A B C D E F G H I J K L M N O P Q R S T U V W X Y Z siehe auch: Liste von Dateiendu …   Deutsch Wikipedia

  • performing arts — arts or skills that require public performance, as acting, singing, or dancing. [1945 50] * * * ▪ 2009 Introduction Music Classical.       The last vestiges of the Cold War seemed to thaw for a moment on Feb. 26, 2008, when the unfamiliar strains …   Universalium

  • Dancing on Ice — For the most recently concluded series see Dancing on Ice (series 6) Dancing on Ice New 2011 logo Format Talent show Created by …   Wikipedia

  • NBA on TNT — Format Sports Starring Marv Albert Steve Kerr Mike Fratello Ernie Johnson Jr. Charles Barkley Kenny Smith Reggie Miller …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”