Apply a Deformetrica registration as a natverse transform
Source:R/deformetrica4.R
xformpoints.deformetricareg.Rddeformetrica_register() and deformetrica_register_multi() return a
deformetricareg — a portable handle on the fitted diffeomorphism, and a
nat::xformpoints() method. That makes a fitted registration a first-class natverse
transform: nat::xform(x, reg) warps any points / neuron / neuronlist / mesh through
it, and it composes with other registrations (e.g. in a nat.templatebrains reglist).
The control points and momenta are stored inline, so a deformetricareg survives
saveRDS() and being moved to another machine.
Arguments
- reg
A
deformetricareg.- points
An N x 3 matrix of coordinates.
- ...
Passed to
deformetrica_shoot()(e.g.object_type,device).
See also
deformetrica_shoot(), which does the actual geodesic shooting.