Implementation of moving least squares for ND point and image deformation
Project description
MoLeSq
Pronounced like "mollusc".
A python implementation of the Moving Least Squares algorithm for transforming sets of points from one space to another, as published in Schaefer et al. (2006).
Repackaged from implementation by Casey Schneider-Mizell.
Usage
Control points and points of interest are given as numpy arrays.
from molesq import Transformer
tran = Transformer(my_control_points, my_deformed_control_points)
deformed = tran.transform(my_points_of_interest)
undeformed = tran.transform(deformed, reverse=True)
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
molesq-0.3.1.tar.gz
(229.6 kB
view hashes)
Built Distribution
molesq-0.3.1-py3-none-any.whl
(6.5 kB
view hashes)