coord.to.voxel.4dfp: Translate a Coordinate to a Voxel.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
R4dfp.CoordToVoxel(object,coord)

Arguments

object

Object of class ‘R4dfp’.

coord

An Nx3 matrix of coordinates to translate into voxels.

Details

Finds the nearest voxel to the given coordinates. Image limits aren't checked.

Value

Nx3 matrix of voxels.

Author(s)

Kevin P. Barry <ta0kira@users.berlios.de> with contributions from Avi Z. Snyder <avi@npg.wustl.edu>

See Also

R4dfp.VoxelToCoord R4dfp.Load R4dfp.Save R4dfp.Close R4dfp.Recycle

Examples

1
2
3
#get the nearest voxel to the origin
myimage <- R4dfp.Blank333()
voxel <- R4dfp.CoordToVoxel(myimage,c(0,0,0))

R4dfp documentation built on May 1, 2019, 8:41 p.m.