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.
Images of the types int4 and real generally cannot be exchanged between different types of computers.
Image (input_object) |
image -> object : byte / int4 / real |
FileName (input_control) |
filename.named -> string |
Default value: ''tmp/test'' |
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.