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.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0826b5b4e89e0e9c06439b2c75e121cfc0134ec302804bafe9cc71b3ff1004bd |
|
MD5 | f060a6ebb5a793dc5414481e5ebb81c6 |
|
BLAKE2b-256 | 606e9414fc2f8a1b3c47be349ce898df91dec48b17ad2bcc42c52ab9e5d5c8f8 |
Close
Hashes for thin_plate_spline-1.0.1.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b60bc6369505b093bae84a689f9bd32e5fe7828f4c98ec1632112cbe554c07f9 |
|
MD5 | 8e2bacff53d14b21ee972d4a55bae042 |
|
BLAKE2b-256 | afc6fb231d5158e1a2acf3f67781457e3147e9bf40e07764e66d8ac83b4afcd2 |