Convert locations of im3d voxel grid into XYZ coordinates

imexpand.grid(d)

Arguments

d

An im3d object

Value

Nx3 matrix of image coordinates

See also

expand.grid

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

Examples

d=im3d(,dim=c(2,3,2),origin=c(10,20,30),voxdims=c(1,2,3)) imexpand.grid(d)
#> [,1] [,2] [,3] #> [1,] 10 20 30 #> [2,] 11 20 30 #> [3,] 10 22 30 #> [4,] 11 22 30 #> [5,] 10 24 30 #> [6,] 11 24 30 #> [7,] 10 20 33 #> [8,] 11 20 33 #> [9,] 10 22 33 #> [10,] 11 22 33 #> [11,] 10 24 33 #> [12,] 11 24 33