next up previous contents
Next: Single voxel, real data Up: Reading and writing data Previous: Details of voxel conversion   Contents

Single voxel, voxel data functions

miget_voxel_value(mihandle_t volume,
                  const unsigned long location[],
                  double *voxel_ptr);

miset_voxel_value(mihandle_t volume,
                  const unsigned long location[],
                  double voxel);

These two functions read or write a single voxel, at coordinates given by the location array. The length of the location array must equal the number of dimensions in the volume. The only transformation performed on the data will be a value-preserving change of representation. If the actual storage type cannot represent the value passed to the miset_voxel_value() function, the value stored will be undefined.

Robert VINCENT 2004-05-28