ThinPlateSpline<T>

Models & Types · AiDotNet.Augmentation.Image

Applies thin plate spline (TPS) transformation to an image.

Inheritance: AugmentationBase<T, ImageTensor<T>> → ImageAugmenterBase<T> → ThinPlateSpline<T>

For Beginners

Imagine pinning a flexible sheet at several points and then moving some pins. The sheet bends smoothly between the pins. TPS creates the smoothest possible distortion that matches all the specified control point movements.

How It Works

Thin plate spline is a smooth interpolation method that warps an image by specifying control point displacements. TPS minimizes the bending energy of the deformation, producing the smoothest possible warp that passes through all control points. Named after the physical analogy of bending a thin metal plate.

When to use:

  • Shape deformation augmentation
  • Medical image registration
  • Face warping and morphing

Constructors

Constructor Summary
ThinPlateSpline(int numControlPoints, double scale, double fillValue, double probability) Creates a new thin plate spline augmentation.

Properties

Property Summary
double FillValue { get; } Gets the fill value for out-of-bounds pixels.
double Scale { get; } Gets the maximum displacement scale.
int NumControlPoints { get; } Gets the number of control points per dimension.

Methods

Method Summary
IDictionary<string, object> GetParameters()