templatebrain-meths | R Documentation |
is.templatebrain
tests if object is of class
templatebrain
as.character.templatebrain
converts template brain to
character vector representation (normally used to extract the short name
i.e. regName
).
print.templatebrain
prints templatebrain information in
human-readable form
as.im3d
converts a template brain to a
nat::im3d
object; this is probably useful for
developers.
origin
extracts the space origin of a templatebrain
object.
dim
extracts the dimensions (in number of pixels) of the
image associated with a templatebrain
object.
voxdims
extracts the dimensions (in calibrated spatial
units, e.g. microns) of voxels in the image associated with a
templatebrain
object.
boundingbox
extracts the boundingbox (in calibrated
spatial units, e.g. microns) of the image associated with a templatebrain
object. See boundingbox
for details.
is.templatebrain(x)
## S3 method for class 'templatebrain'
as.character(x, field = c("regName", "name"), ...)
## S3 method for class 'templatebrain'
print(x, ...)
## S3 method for class 'templatebrain'
as.im3d(x, ...)
## S3 method for class 'templatebrain'
origin(x, ...)
## S3 method for class 'templatebrain'
dim(x, ...)
## S3 method for class 'templatebrain'
voxdims(x, ...)
## S3 method for class 'templatebrain'
boundingbox(x, ...)
x |
an object (usually a |
field |
which field to use (defaults to |
... |
additional arguments for methods. |
Return values are documented in the generic methods.
is.templatebrain
returns a logical indicating whether or not the
object is a templatebrain
.
as.character.templatebrain
returns a character vector with the
name of the template brain.
dim.templatebrain
returns a 3-value integer vector.
im3d
origin
voxdims
boundingbox
data(FCWB.demo)
is.templatebrain(FCWB.demo)
origin(FCWB.demo)
dim(FCWB.demo)
voxdims(FCWB.demo)
boundingbox(FCWB.demo)
# print method
FCWB.demo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.