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

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


crimp_pfm - CRIMP - PFM handling, NetPBM

Table Of Contents



This package provides commands for the conversion of CRIMP images to Portable Float Maps (PFM) and vice versa.

Note that in contrast to the PPM and PGM formats this is not an official format of the NetPBM suite.

PFM was derived from PGM by simply replacing the integer with floating-point values, in the pixel matrix.

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


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


::crimp read pfm string

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


The plain ASCII format of portable float maps.


The raw binary format of portable float maps.

The only supported image type is float.


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


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