Skip to main content

Pure Numpy Implementation of the Coherent Point Drift Algorithm

Project description

Pure Numpy Implementation of the Coherent Point Drift Algorithm.

MIT License.

Introduction

This is a pure numpy implmenetation of the coherent point drift CPD algorithm by Myronenko and Song. It provides three registration methods for point clouds: 1) Scale and rigid registration; 2) Affine registration; and 3) Gaussian regularized non-rigid registration.

The CPD algorithm is a registration method for aligning two point clouds. In this method, the moving point cloud is modelled as a Gaussian Mixture Model (GMM) and the fixed point cloud are treated as observations from the GMM. The optimal transformation parameters maximze the Maximum A Posteriori (MAP) estimation that the observed point cloud is drawn from the GMM.

The registration methods work for 2D and 3D point clouds.

Pip Install

$ pip install pycpd

Installation From Source

Clone the repository to a location in your home directory. For example:

$ git clone https://github.com/siavashk/pycpd.git $HOME/pycpd

Install the package:

$ pip install .

For running sample registration examples under /tests, you will need two additional packages.

Scipy (for loading .mat files) and matplotlib (for visualizing the reigstration). These can be downloaded by running:

$ pip install -r requirements.txt

Usage

Each registration method is contained within a single class inside the pycpd subfolder. To try out the registration, you can simply call:

$ python tests/fish{Transform}{Dimension}.py

where Transform is either Rigid, Affine or Deformable and Dimension is either 2D or 3D.

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

pycpd-0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

pycpd-0.1-py2-none-any.whl (8.2 kB view details)

Uploaded Python 2

File details

Details for the file pycpd-0.1.tar.gz.

File metadata

  • Download URL: pycpd-0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pycpd-0.1.tar.gz
Algorithm Hash digest
SHA256 3eb20cd152571c5100052fa50c101231a6400b148a27d263d9c05b4f2f7ee240
MD5 4a92dc1b1eb3cf9b6a90744141218f30
BLAKE2b-256 3dc8ef2b519c67e4f9fa77e29d84144d2f67297d31066563ba404dd4cffeb199

See more details on using hashes here.

File details

Details for the file pycpd-0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for pycpd-0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 86f5335a1b9ad7d53bbd4e12c3f092f0006c59aef17fad28cf5e9f55de03d4bf
MD5 e320d9a881be5b84bcc15f01c5987c61
BLAKE2b-256 8b9db75eac4931b0041629787617323e97b6290755ec52d4277a95ec9fa5858e

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