View source: R/displacementField.r
smoothDisplacementField | R Documentation |
smooth a displacement field using Gaussian smoothing
smoothDisplacementField(
dispfield,
k = 10,
sigma = 20,
type = c("Gauss", "Laplace", "Exponential", "Bspline", "TPS"),
iterations = 1,
subsample = 2000,
lambda = 1e-08,
threads = 0
)
dispfield |
displacement field of class "DisplacementField", e.g. created using |
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. |
interpolateDisplacementField, applyDisplacementField, plot.DisplacementField
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.