R/minc_interface.R
mincVectorToVoxelCoordinates.Rd
RMINC 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.
mincVectorToVoxelCoordinates(volumeFileName, vectorCoord)
volumeFileName | the filename of the MINC volume |
---|---|
vectorCoord | the integer array index to convert |
a vector of length 3 containing the MINC indices in volume dimension order
# NOT RUN { index <- mincVectorToVoxelCoordinates("filename.mnc", 345322) voxel <- mincGetVoxel(gf$filenames, index) # }