next up previous contents
Next: Volume creation Up: Reading and writing data Previous: Hyperslab, voxel data functions   Contents

Hyperslab, real data functions

int miget_real_value_hyperslab(mihandle_t volume,
                               mitype_t buf_type,
                               const unsigned long start[],
                               const unsigned long count[],
                               void *buf_ptr);

miget_real_value_hyperslab retrieves a selected hyperslab of data from the MINC file. If the file's class is ``real'', each voxel is converted by scaling it with the stored image minimum and maximum values. If the file's class is not ``real'', no conversion is performed.

int miset_real_value_hyperslab(mihandle_t volume,
                               mitype_t buf_type,
                               const unsigned long start[],
                               const unsigned long count[],
                               const void *buf_ptr);

miset_real_value_hyperslab saves a selected hyperslab of data to the MINC file. If the file's class is ``real'', each voxel is converted by scaling it with the stored image minimum and maximum values. If the file's class is not ``real'', no conversion is performed.

int miget_hyperslab_normalized(mihandle_t volume, 
                               mitype_t buffer_data_type,
                               const unsigned long start[], 
                               const unsigned long count[],
                               double min, 
                               double max, 
                               void *buffer);

miget_hyperslab_normalized reads a hyperslab of data from the file. In addition to performing the standard conversions, the data is normalized such that the values are mapped into the full range of the specified buffer_data_type, such that real voxel values less than or equal to min will be mapped to the lowest possible value of the data type, and real voxel values greater than or equal to max will be mapped to the largest possible value of the data type.


next up previous contents
Next: Volume creation Up: Reading and writing data Previous: Hyperslab, voxel data functions   Contents
Robert VINCENT 2004-05-28