fit_xform | R Documentation |
Fit affine or thin plate spline transform to arbitrary transformation
fit_xform(
reg,
samplepts,
refpts = NULL,
type = c("affine", "rigid", "similarity", "tps"),
subsample = FALSE,
scale = c(1, 1),
...
)
reg |
Any registration compatible with |
samplepts |
A set of points in the sample (floating) space. Can be any
object compatible with |
refpts |
An optional set of points in the target (fixed) space matching
|
type |
A character string specifying the type of registration. See
|
subsample |
A number of points to subsample from
|
scale |
a 2-vector indicating the amount to scale the sample and
reference points. You can supply one vector if this is the same. If the
transform expects points in microns and returns points in microns then you
would need |
... |
Additional arguments passed to |
A homogeneous affine matrix or a nat::tpsreg
object
n.b. only in development nat (>= 1.10.1)
## Not run:
library(nat.flybrains)
reg=shortest_bridging_seq(sample='FCWB', reference="JFRC2")
fit_xform(reg, nat::kcs20, subsample=200, type='affine')
# compute transform with translations in nm not microns
fit_xform(reg, nat::kcs20, subsample=200, type='affine', scale=1000)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.