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
$ 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
File details
Details for the file thin-plate-spline-1.1.0.tar.gz
.
File metadata
- Download URL: thin-plate-spline-1.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9298102bd8f71a68d165eba5770fe273e116289b49eb7bb35cb15483cc8806a |
|
MD5 | 3e96c8b46111a8be0229df59a312d88e |
|
BLAKE2b-256 | c0739ee49e7c6256ce1a4e65be664f27b2cf485b29192fea04e56e6c4e492af2 |
File details
Details for the file thin_plate_spline-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: thin_plate_spline-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecbe0be32d9d5cb56c15780d6e01fd254dbdd0e62093d48d9362d0bcb830e2e0 |
|
MD5 | cfda66f52e2150a625dd47bbff027ee8 |
|
BLAKE2b-256 | 1bff901140fb242a36b481ad2fadcf8b7cc96e51f99c880c290a0da5cc4b7df4 |