converts a vector index to the voxel indices in MINC
Source:R/minc_interface.R
mincVectorToVoxelCoordinates.RdRMINC stores volume data as 1d arrays. This function gives the corresponding voxel coordinates (in the dimension order of the volume) for an index into the 1d array.
Examples
if (FALSE) { # \dontrun{
index <- mincVectorToVoxelCoordinates("filename.mnc", 345322)
voxel <- mincGetVoxel(gf$filenames, index)
} # }