fitTransformToPairedPoints: Fit transform to points

View source: R/patchMatch.R

fitTransformToPairedPointsR Documentation

Fit transform to points

Description

This function will use either the Kabsch algorithm or a least squares fitting algorithm to match the pairs of points that the user provides. An antsr transform is returned.

Usage

fitTransformToPairedPoints(
  movingPoints,
  fixedPoints,
  transformType = "Affine",
  lambda = 1e-06,
  domainImage,
  numberOfFittingLevels = 4,
  meshSize = 1,
  dataWeights
)

Arguments

movingPoints

moving points matrix

fixedPoints

fixed points matrix

transformType

Rigid, Similarity, Affine and BSpline currently supported

lambda

ridge penalty in zero to one interval

domainImage

image defining the domain for deformation maps.

numberOfFittingLevels

integer specifying the number of fitting levels.

meshSize

vector defining the mesh size at the initial fitting level.

dataWeights

vector defining the individual weighting of the corresponding scattered data value. Default = NULL meaning all values are weighted the same. Currently, this is only relevant to BSpline fits but FIXME will be generalized.

Value

antsTransform that maps the moving image to the fixed image space. the inverse transform maps the moving points to the fixed space. Associated error is also returned.


stnava/patchMatchR documentation built on March 23, 2022, 6:47 a.m.