NAME miconvert_real_to_voxel, miconvert_voxel_to_real - conversion between voxel and real values SYNOPSIS #include <minc2.h> int miconvert_real_to_voxel( mihandle_t volume, const unsigned long location[], int array_length, double value, double *voxel_ptr ); int miconvert_voxel_to_real ( mihandle_t volume, const unsigned long location[], int array_length, double voxel, double *value_ptr ); DESCRIPTION These functions convert values between real (scaled) values and voxel (unscaled) values. The voxel value is the unscaled value, and corresponds to the value actually stored in the file, whereas the "real" value is the value at the given location after scaling has been applied. RETURN VALUE Returns MI_NOERROR on success, MI_ERROR on failure.