Learn R Programming

nat.templatebrains (version 0.4.1)

templatebrain: Construct templatebrain object for an image registration template

Description

templatebrain objects encapsulate key information for the reference brain in an image registration. Usually this will be a standard template brain used for many registrations. It will normally be much more convenient to use as.templatebrain methods to convert an image file or an im3d object into a templatebrain.

Usage

templatebrain(name, regName = name, type = NULL, sex = NULL,
  dims = NULL, BoundingBox = NULL, voxdims = NULL, units = NULL,
  description = NULL, ...)

Arguments

name
the full name of the template.
regName
the short name. This will be the stem used to prefix registrations (e.g. JFRC2_someimage.list) for this template brain and likely also the stem of the template brain image (e.g. JFRC2.nrrd).
type
one of c('single brain', 'average'), indicating whether the template brain has been created from just one image, or is the average of multiple images.
sex
the sex of the template brain. For templates with type=='average', the possibility of sex='intersex' exists.
dims
dimensions of the image (number of voxels)
BoundingBox
physical dimensions of the image (see boundingbox)
voxdims
physical spacing between voxels
units
units of physical measurements (e.g. microns)
description
details of the template.
...
additional named arguments that will be added as fields to the templatebrain object

Value

  • A list with class templatebrain.

Details

A variety of methods are availabe to work on templatebrain objects. See templatebrain-meths for basic methods. The two main functions that are availavle for using templatebrains are xform_brain and mirror_brain.

templatebrain objects are only useful for transformation processes when the BoundingBox is specified to define the physical extent of the volume. We use the definition of the Amira 3D visualisation and analysis software. This corresponds to the node centers option in the http://teem.sourceforge.net/nrrd/format.html{NRRD format}. The bounding box can be obtained from nrrd or amiramesh format files. See boundingbox for details.

See Also

as.templatebrain, templatebrain-meths, xform_brain, mirror_brain.