smoothDisplacementField: smooth a displacement field using Gaussian smoothing

View source: R/displacementField.r

smoothDisplacementFieldR Documentation

smooth a displacement field using Gaussian smoothing

Description

smooth a displacement field using Gaussian smoothing

Usage

smoothDisplacementField(
  dispfield,
  k = 10,
  sigma = 20,
  type = c("Gauss", "Laplace", "Exponential", "Bspline", "TPS"),
  iterations = 1,
  subsample = 2000,
  lambda = 1e-08,
  threads = 0
)

Arguments

dispfield

displacement field of class "DisplacementField", e.g. created using createDisplacementField

k

integer: number of k closest points to evaluate.

sigma

kernel bandwidth used for smoothing. For all kernels except B-spline, sigma controls the importance of the neighbourhood by defining the bandwidth of the smoothing kernel. For B-spline it defines the support (the higher, the "wobblier" the deformation field can become.

type

kernel function for smoothing are "Gauss","Laplace", "Exponential", "Bspline" and "TPS" (or any abbreviation thereof).

iterations

number of iterations to run

subsample

integer: amount to subsample the field in case of type="TPS"

lambda

smoothing factor for TPS

threads

integer: number of threads to use for computing the interpolation.

See Also

interpolateDisplacementField, applyDisplacementField, plot.DisplacementField


zarquon42b/mesheR documentation built on Jan. 28, 2024, 2:17 p.m.