Learn R Programming

nat (version 1.8.24)

imexpand.grid: Convert locations of im3d voxel grid into XYZ coordinates

Description

Convert locations of im3d voxel grid into XYZ coordinates

Usage

imexpand.grid(d)

Value

Nx3 matrix of image coordinates

Arguments

d

An im3d object

See Also

expand.grid

Other im3d: as.im3d(), boundingbox(), im3d-coords, im3d-io, im3d(), imslice(), is.im3d(), mask(), origin(), projection(), threshold(), unmask(), voxdims()

Examples

Run this code
d=im3d(,dim=c(2,3,2),origin=c(10,20,30),voxdims=c(1,2,3))
imexpand.grid(d)

Run the code above in your browser using DataLab