Code Monkey home page Code Monkey logo

coherentpointdrift's Introduction

Coherent Point Drift

Single-Header Reference Implementation of Rigid Coherent Point Drift in C++ / Eigen3 ( < 80 LOC )

Example programs include a very basic useage and a version with visualization. The algorithm is performant but not optimized with fast gaussian transform (yet).

The algorithm is robust against noise and occlusion, and generalizes seamlessly into N dimensions.

Reference: Point Set Registration: Coherent Point Drift, Andriy Myronenko and Xubo Song (2010)

Coherent Point Drift Example on Cuboid with 3 Different Side Lengths, Constant Scale

Coherent Point Drift Example on Cuboid with 3 Different Side Lengths, Constant Scale. Example Program 1

Algorithm

This is an expectation maximization algorithm which estimates the rigid transformation parameters of between two point clouds. It assumes that one point cloud is a gaussian mixture model from which the other is generated. We can compute a likelihood of points being generated from this mixture model (assignments) and use this to find optimal transform parameters using expectation maximization of the posterior distribution (i.e. parameters given evidence of assignments).

A rigid transformation includes rotation, translation and scaling.

Usage

The actual CPD portion is separated out cleanly in a header so it can be reutilized without the visualization.

The relevant portion of the code is only about 80 lines of code, but makes use of existing linear algebra routines provided by Eigen.

Building / Running Examples

Enter the relevant example folders and use the make files. Binaries are built in place.

cd examples/0_Basic
make all
./main

Dependencies

cpd.h

- Eigen3
- glm

/examples/1_Visual

- TinyEngine

Visual Program

P: Pause / Unpause
Space: Apply Rigid Transformation, Restart Iteration

coherentpointdrift's People

Contributors

weigert avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.