Learn R Programming

R4dfp (version 0.2-4)

R4dfp.VoxelToCoord: Translate a Voxel to a Coordinate.

Description

Translate a voxel to a coordinate for a specific 4dfp MRI image.

Usage

R4dfp.VoxelToCoord(object,voxel)

Arguments

object
Object of class ‘R4dfp’.
voxel
An Nx3 matrix of voxels to translate into coordinates.

Value

Nx3 matrix of coordinates.

Details

Finds the nearest coordinate to the given voxels. Image limits aren't checked.

See Also

R4dfp.CoordToVoxel R4dfp.Load R4dfp.Save R4dfp.Close R4dfp.Recycle

Examples

Run this code
#get the coordinate of the first voxel
myimage <- R4dfp.Blank333()
coord <- R4dfp.VoxelToCoord(myimage,c(1,1,1))

Run the code above in your browser using DataLab