<<<<<<<<<<<<<<<<<

mio(mio) Volume I/O mio(mio)

NAME

mio - volume I/O

DESCRIPTION

The mio class provides I/O routines for volumes. It is an abstract class. Subclasses exist for reading 8-bit and 16-bit data. Where possible, a cache of slices is maintained. This is useful when generating reformatted slices that cut obliquely across the actual slice data.

SUPERCLASS

object

INSTANCE VARIABLES

prefix is a string containing the path and the name of the image data. This is not the full filename, because that will be derived from the prefix and the slice number and the file format.

slice is the number of the slice to read.

mask is a mask to be applied to the data. When images are read, this mask is anded with the image data.

MESSAGES

flush! flushes the slice cache.

image? returns a pointer to the image data.

prefix= value sets the prefix instance variable.

prefix? returns the value of the prefix instance variable on the argument stack.

compute_number_slices! calculates the number of slices in the study. This message is often overridden by subclasses.

number_slices? returns the number of slices in the volume.

read! reads the slice into local memory and applies mask to the image data.

read: is a private message called by read!.

slice= value sets the slice instance variable.

slice+ value adds the value to the slice instance variable.

slice? returns the value of the slice instance variable on the argument stack.

filename? returns the filename of the instance (prefix + extension). This message must be implemented by the appropriate concrete class.

EXAMPLE

/* read a 2d slice */

mio_3d new: mio_name prefix= "/home/mydisk/myname/volumename" slice= 10 read!;

SEE ALSO

mio_8bit, mio_16bit, ivm_mapper


Please send comments and suggestions to
consult@rpi.edu