source template brain (e.g. IS2) that data is currently in.
reference
target template brain (e.g. IS2) that data should be
transformed into.
via
optional intermediate brain to use when there is no direct
bridging registration.
checkboth
Whether to look for registrations in both directions. The
default (checkboth=FALSE) will only return registrations in the
forward direction (see details).
mustWork
Whether to error out if appropriate registrations are not
found.
registration direction
When mapping points from JFRC2 -> IS2 -> FCWB
(i.e. sample=JFRC2, via=IS2, ref=FCWB) the command line passed to CMTK's streamxform
should look like:
streamxform -- JFRC2_IS2.list --inverse FCWB_IS2.list
However when mapping image data
the command line for CMTK's reformatx should look like:
reformatx -- JFRC2_IS2.list --inverse FCWB_IS2.list
and the corresponding output might look like list(JFRC2 = structure(
"/GD/dev/R/nat.flybrains/inst/extdata/bridgingregistrations/JFRC2_IS2.list",
swapped = TRUE),
IS2 = "/GD/dev/R/nat.flybrains/inst/extdata/bridgingregistrations/FCWB_IS2.list")
Details
When checkboth=FALSE, only registrations that can be directly
used to map image data from sample to reference are returned. When working
with 3D points, use checkboth=TRUE. Note that all possible
directories will first be scanned for registrations in the preferred
direction and then rescanned for the opposite direction if nothing is
found.