Skip to contents

deformetrica_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.

Usage

# S3 method for class 'deformetricareg'
xformpoints(reg, points, ...)

Arguments

reg

A deformetricareg.

points

An N x 3 matrix of coordinates.

...

Passed to deformetrica_shoot() (e.g. object_type, device).

Value

An N x 3 matrix of deformed coordinates.

See also

deformetrica_shoot(), which does the actual geodesic shooting.