write_image ( Image : : FileName : )

Write HORUS image.

The operator write_image writes the indicated image into the image file FileName. The name is indicated without extension; the extension ".ima" is added to the name. The data is written binary line by line (without header or carriage return). The size of the image and the pixel type are stored in the description file "FileName.exp". byte, int4 and real images can be written.


Attention

Images of the types int4 and real generally cannot be exchanged between different types of computers.


Parameters

Image (input_object)
image -> object : byte / int4 / real

FileName (input_control)
filename.named -> string
Default value: ''tmp/test''


Result

If the parameters are correct the operator write_image returns the value TRUE. If the indicated file cannot be written read_image returns the value FAIL. Otherwise an exception is raised.


Possible Predecessors

read_info, read_image


Alternatives

write_picture__


See also

read_image



Copyright © 1996-1997 MVTec Software GmbH