molesq 0.4.0


pip install molesq

  Latest version

Released: Sep 09, 2021

Project Links

Meta
Author: Chris L. Barnes
Requires Python: >=3.7, <4.0

Classifiers

Development Status
  • 3 - Alpha

License
  • OSI Approved :: MIT License

Programming Language
  • Python :: 3.7
  • Python :: 3.8
  • Python :: 3.9

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)

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
numpy (>=1.20)
scipy