[ Home | Main Table Of Contents | Table Of Contents | Keyword Index ]

crimp_pgm(n) 0.2 doc "C Raster Image Manipulation Package"

Name

crimp_pgm - CRIMP - PGM handling, NetPBM

Table Of Contents

Synopsis

Description

This package provides commands for the conversion of CRIMP images to Portable Greymaps (PGM) and vice versa.

For a basic introduction of the whole CRIMP eco-system please read the CRIMP - Introduction to CRIMP (sic!). The basic concepts used here, like images, image types, etc. are described in the reference manpage for the CRIMP - Foundation. We will not repeat them here, but assume that the reader knows them already.

In the overall architecture this package resides in the middle layer of the system's architecture, between core and applications, as shown at

arch_pam

The commands it provides all fall into the I/O category of the general design.

Tcl API

::crimp read pgm string

This method extends the ::crimp read ensemble. It takes the (possibly binary) string holding an image in the PGM format and returns an image of type rgb containing it.

::crimp write 2string format image
::crimp write 2chan format chan image
::crimp write 2file format path image

The package extends the above ensemble with support for the following formats

pgm-plain

The plain ASCII format of portable grey maps, as per http://en.wikipedia.org/wiki/Netpbm_format.

pgm-raw

The raw binary format of portable grey maps, as per http://en.wikipedia.org/wiki/Netpbm_format.

The supported image types are grey8, rgb, rgba, and hsv.

References

  1. http://en.wikipedia.org/wiki/Netpbm_format

Keywords

Export PGM image, Export image, PGM, Import PGM image, Import image, PGM, PGM, PGM image export, PGM image import, computer vision, document processing, image, matrix, photo, vector