Skip to main content

Thin Plate Spline implementation with numpy/scipy

Project description

tps

Lint and Test

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thin-plate-spline-1.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

thin_plate_spline-1.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for thin-plate-spline-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d9298102bd8f71a68d165eba5770fe273e116289b49eb7bb35cb15483cc8806a
MD5 3e96c8b46111a8be0229df59a312d88e
BLAKE2b-256 c0739ee49e7c6256ce1a4e65be664f27b2cf485b29192fea04e56e6c4e492af2

See more details on using hashes here.

File details

Details for the file thin_plate_spline-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for thin_plate_spline-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecbe0be32d9d5cb56c15780d6e01fd254dbdd0e62093d48d9362d0bcb830e2e0
MD5 cfda66f52e2150a625dd47bbff027ee8
BLAKE2b-256 1bff901140fb242a36b481ad2fadcf8b7cc96e51f99c880c290a0da5cc4b7df4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page