Thin Plate Spline implementation with numpy/scipy
Project description
tps
Implementation of Thin Plate Spline. (For a faster implementation in torch, look at tps-torch)
Install
Pip
$ pip install thin-plate-spline
Conda
Not yet available
Getting started
import numpy
from tps import ThinPlateSpline
# Some data
X_c = np.random.normal(0, 1, (800, 3))
X_t = np.random.normal(0, 2, (800, 2))
X = np.random.normal(0, 1, (300, 3))
# Create the tps object
tps = ThinPlateSpline(alpha=0.0) # 0 Regularization
# Fit the control and target points
tps.fit(X_c, X_t)
# Transform new points
Y = tps.transform(X)
Also have a look at example.py
Build and Deploy
$ pip install build twine
$ python -m build
$ python -m twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for thin_plate_spline-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9d5f774be2958ed72557fbb65aa5ad01e8e3ee6810ed6b833b9844b1e15deb6 |
|
MD5 | 6bff04bf47b90fa22be931e57fa4fa2c |
|
BLAKE2b-256 | 693312cd7cc6af7b9758f2cd7f81000c26e64e722dd964fc83393cac23cf9588 |