Topic "io"

IO			    Monash Image Library			IO

To communicate with other image processing programs and for the storage of
data, a large variety of file formats are supported. The cif format is only
supported by this library as it includes the IMAGE structure. All images are
piped using this format, and it is the default file type when none is
specified.

iopen uses the IMAGES enviroment variable to locate the image specified. It
will search all the directories specifed in this variable. Usually this
is set in your .cshrc, .tcshrc, .bashrc, or .login files at login time.
 
icat is a program which can be used to convert files between formats. For
example:

	icat a.gif b.ppm

converts image a from gif format to ppm format.

The "xv" program installed on most Unix/X11 systems can also be used to
convert some file formats.

The cif format is specifically for the Monash Image Library. The format
stores the IMAGE structure in the first 2048 bytes of the file, which is
then followed by the raw data. Thus any image that the image library
supports can be saved using this format. This also allows for images to be
passed through pipes and the format should be compatible with future
versions of the library.


Related Functions

iascii dump image as ascii numbers to outfile
iclose Releases all memory allocated to the image
idump dump image called basename.fmt, fmt: img smg lmg dmg cmg xbm rgb sgi gif ps cps bps cif pbm pgm ppm pnm. N.B. this separation of basename and format arguments non standard, the rest of the image library commands use a combined file name.
idumpbps dump a binary image as a monochrome postscript file
idumpcps dump an image as a colour postscript file
idumppbm dump image to pbm (1 or 4), pgm (2 or 5) or ppm (3 or 6) file. Both ASCII (1, 2, 3) and raw (4, 5, 6) formats are supported
idumpps dump a greyscale image as a dithered postscript file
iopen find image using paths in the IMAGES enviroment variable and load into memory

Other Topics

index | userguide | full | arithmetic | basic | binary | blocks | colour | compress | display | docs | fft | hist | image | io | makefile | masks | memory | misc | morph | pixel | rgb | stats | transform | error | mapping