fluidimage.calcul.interpolate.thin_plate_spline_subdom#
Thin plate spline with subdomains#
Translated and adapted from UVmat code (Joel Sommeria, LEGI, CNRS).
This interpolation/smoothing (Duchon, 1976; NguyenDuc and Sommeria, 1988) minimises a linear combination of the squared curvature and squared difference from the initial data.
We first need to compute tps coefficients U_tps
(function
compute_tps_coeff
). Interpolated data can then be obtained as the
matrix product dot(U_tps, EM)
where the matrix EM
is obtained
by the function compute_tps_matrix
. The spatial derivatives are
obtained as dot(U_tps, EMDX)
and dot(U_tps, EMDY)
, where
EMDX
and EMDY
are obtained from the function
compute_tps_matrix_dxy
. A helper class is also provided.
Classes
|
Helper class for thin plate interpolation. |