Skip to main content

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.4.0.tar.gz (229.9 kB view hashes)

Uploaded Source

Built Distribution

molesq-0.4.0-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

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