RBF or Thin-Plate Splines Image Warping
Radial basis function/Thin-plate spline 2D image warping.
[imo,mask] = rbfwarp2d( im, ps, pd, method)
input:
im: image 2d matrix
ps: 2d source landmark [n*2]
pd: 2d destin landmark [n*2]
method:
'gau',r - for Gaussian function ko = exp(-|pi-pj|/r.^2);
'thin' - for Thin plate function ko = (|pi-pj|^2) * log(|pi-pj|^2)
output:
imo : output matrix
mask : mask for output matrix, 0/1 means out/in the border
Bookstein, F. L.
"Principal Warps: Thin Plate Splines and the Decomposition of Deformations."
IEEE Trans. Pattern Anal. Mach. Intell. 11, 567-585, 1989.
Inspired by
https://cn.mathworks.com/matlabcentral/fileexchange/24315-warping-using-thin-plate-splines
Code by WangLin
2015-11-5
wanglin193_hotmail.com
Cite As
Wang Lin (2026). RBF or Thin-Plate Splines Image Warping (https://www.mathworks.com/matlabcentral/fileexchange/53828-rbf-or-thin-plate-splines-image-warping), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Geometric Transformation and Image Registration >
- MATLAB > Graphics > Images > Read, Write, and Modify Image >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | some comment
|
