Coder Social home page Coder Social logo

alvinwan / pcmatch Goto Github PK

View Code? Open in Web Editor NEW
28.0 3.0 10.0 2.88 MB

Iterative closest point (ICP) to match point clouds to templates

Home Page: http://alvinwan.com/pcmatch/

License: Apache License 2.0

Python 30.40% HTML 2.03% JavaScript 39.81% CSS 2.41% Shell 24.79% Makefile 0.56%
point-registration iterative-closest-point point-cloud point-cloud-visualizer

pcmatch's Introduction

Point Cloud Matching

Uses iterative closest point (ICP) to match sample point clouds to templates. Includes utilities to convert existing .stl, .obj, .xaml, .pkl etc. objects into point cloud, numpy arrays. To visualize the results in an interactive viewer, see viewer/.

screen shot 2017-06-20 at 12 05 20 am

Install

The project is written in Python 3 and is not guaranteed to successfully backport to Python 2.

(Optional) We recommend setting up a virtual environment.

virtualenv pcm --python=python3
source activate pcm/bin/activate

Say $PCM_ROOT is the root of your repository. Navigate to your root repository.

cd $PCM_ROOT

We need to setup our Python dependencies.

pip install -r requirements.txt

Run

By default, the script looks for sample point clouds in ./data/raw and template point clouds in ./data/templates. All point cloud files are .npy files containing nx3 matrices of x,y,z respectively.

python label.py

Here are full usage instructions:

Usage:
    label.py [options]

Options:
    --template=<path>   Path to templates [default: ./data/templates/*.npy]
    --raw=<path>        Path to unclassified data [default: ./data/raw/*.npy]
    --out=<out>         Path for final results [default: ./out/labels.npy]

templates

pcmatch's People

Contributors

alvinwan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pcmatch's Issues

match point cloud to 3D CAD model

Hi!

thank you for sharing this release! Great job!

I would like to use it to match 3D CAD model with point cloud. What's the output of label.py ? Does this 4x4 matrix represent transformation matrix to align two .npy?

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.