Skip to content

wladich/thinplatespline

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 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.9%
  • Python 16.3%
  • Cython 11.8%