im3d
objects consist of a data array with attributes defining the
spatial positions at which the voxels are located. There should always be a
BoundingBox
attribute which defines the physical extent of the volume
in the same manner as the Amira 3D visualisation and analysis software. This
corresponds to the node centers option in the
NRRD format.
im3d(
x = numeric(0),
dims = NULL,
voxdims = NULL,
origin = NULL,
BoundingBox = NULL,
bounds = NULL,
...
)
An array with additional class im3d
The object to turn into an im3d
The dimensions of the image array either as an integer vector
or as an im3d object, whose attributes will provide defaults for
dims, origin, BoundingBox, bounds
arguments. The default
(dims=NULL
) will result in dims
being set to x
if
x
is an im3d
object or dim(x)
otherwise.
The voxel dimensions
the location (or centre) of the first voxel
Physical extent of the image. See the details section of
boundingbox
's help for the distinction between
BoundingBox
and bounds
.
Physical extent of image
Additional attributes such as units or materials
We follow Amira's convention of setting the bounding box equal to voxel dimension (rather than 0) for any dimension with only 1 voxel.
Other im3d:
as.im3d()
,
boundingbox()
,
im3d-coords
,
im3d-io
,
imexpand.grid()
,
imslice()
,
is.im3d()
,
mask()
,
origin()
,
projection()
,
threshold()
,
unmask()
,
voxdims()