Simple samples to demonstrate 2D Thin Plate Spline Warping.
The keypoint matches are obtained by lightglue matcher on KeyNetAffNetHardNet keypoints.
📖 Explanation
2D Thin Plate Spline (TPS) warping is a parametric transformation method to transform a source image to a target image.
TPS mapping function $\textbf{f}(\textbf{p})=\textbf{f}(x,y)$ is estimated using control points with source points ${\left\{ \textbf{p}_i=(x_i,y_i) \right\}}_{i=1}^N$ in the source image that match with target points ${\left\{ \textbf{p'}_i=(x'_i,y'_i) \right\}}_{i=1}^N$.
The loss function in 2D TPS warping is composed of two main components: data term and bending energy