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

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

Name

crimp_ppm - CRIMP - PPM handling, NetPBM

Table Of Contents

Synopsis

Description

This package provides commands for the conversion of CRIMP images to Portable Pixmaps (PPM) 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 ppm string

This method extends the ::crimp read ensemble. It takes the (possibly binary) string holding an image in the PPM 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

ppm-plain

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

ppm-raw

The raw binary format of portable pix 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 PPM image, Export image, PPM, Import PPM image, Import image, PPM, PPM, PPM image export, PPM image import, computer vision, document processing, image, matrix, photo, vector