ind2coord | R Documentation |
If you have an image-like object and you want to turn it into a
matrix of 3D coords then you need ind2coord
. For the reverse
operation we offer as.im3d.matrix
which allows you to turn a
matrix of 3D coordinates into an im3d
image object.
ind2coord(inds, ...)
## Default S3 method:
ind2coord(inds, dims, voxdims, origin, ...)
## S3 method for class 'array'
ind2coord(inds, voxdims = NULL, origin = NULL, ...)
## S3 method for class 'im3d'
ind2coord(inds, voxdims = NULL, origin = NULL, ...)
inds |
indices into an image array (either 1D, for which |
... |
extra arguments passed to methods. |
dims |
dimensions of 3D image array. |
voxdims |
vector of 3 voxel dimensions (width, height, depth). |
origin |
the origin. |
coord2ind
, sub2ind
,
xyzpos
, as.im3d.matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.