Skip to content

Python library for thin plate spline calculations

Notifications You must be signed in to change notification settings

smomapz/thinplatespline

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TPS

MIT licensed Python library to create Thin-Plate-Splines from control points.

It uses code from the GDAL Warp API, but there is no dependency to GDAL.

>>> from tps import from_control_points

>>> t = from_control_points([
...   (0, 0, 50, 50),
...   (10, 10, 100, 100),
...   (0, 10, 70, 100)])
>>> t.transform(4, 5)
(72.0, 75.0)

>>> t = from_control_points([
...   (0, 0, 50, 50),
...   (10, 10, 100, 100),
...   (0, 10, 70, 100)],
...   backwards=True)
>>> t.transform(72, 75)
(4.0, 5.0)

About

Python library for thin plate spline calculations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 71.3%
  • Python 17.0%
  • Cython 11.7%