
By specifying either reference, sample
or
mirror
arguments, you can add a bridging or mirroring registration,
respectively, to the list of those in use for xform_brain
and
mirror_brain
.
add_reglist(
x,
reference = NULL,
sample = NULL,
mirror = NULL,
temp = TRUE,
...
)
This function is called for its side effect and has no return value.
A single reglist
object (which )
The reference and sample brains (in character
or templatebrain
form) for a bridging registration.
The reference brain (in character
or
templatebrain
form) for a mirroring registration.
Whether to store the on disk representation in a session-specific
temporary folder (that will be removed when R closes). Defaults to
TRUE
.
Additional arguments passed to saveRDS
e.g. to
control compression when the reglist object is saved to disk.
add_reg_folders
if (FALSE) {
library(nat.flybrains)
# mirroring registration for a specific template brain object
add_reglist(mirroring, mirror=JFRC2013)
# equivalent but withhout needing to construct the template
add_reglist(mirroring, mirror="JFRC2013")
# add a bridging registration between two brains
add_reglist(bridging, reference=JFRC2, sample=JFRC2013)
}
Run the code above in your browser using DataLab