crant_mirror() mirrors objects supported by nat::xform(),
including neurons, neuronlists, dotprops, meshes and coordinate matrices,
across the CRANT brain midline.
Usage
crant_mirror(
x,
units = c("nm", "microns"),
subset = NULL,
reg = crantr::crant_mirror_tps,
...
)Arguments
- x
An object to mirror.
- units
Coordinate units for
xand the returned object. The mirror registration is defined in microns; nm inputs are scaled before and after transformation.- subset
Optional subset passed to
nat::xform(), for example when transforming selected elements of a neuronlist.- reg
The mirror registration (in microns). Advanced use.
- ...
Additional arguments passed to
nat::xform().
Details
Mirroring uses the thin plate spline crant_mirror_tps and needs the suggested Morpho package at runtime.
