Skip to content
forked from gogojjh/probreg

Point cloud registration using probabilistic model (CPD/GMMReg/SVR/GMMTree/FilterReg)

License

Notifications You must be signed in to change notification settings

storeix/probreg

 
 

Repository files navigation

logo

Build Status PyPI version MIT License Documentation Status Downloads

Probreg is a library that implements point cloud registration algorithms with probablistic model.

The point set registration algorithms using stochastic model are more robust than ICP(Iterative Closest Point). This package implements several algorithms using stochastic models and provides a simple interface with Open3D.

Core features

  • Open3D interface
  • Rigid and non-rigid transformation

Algorithms

Installation

You can install probreg using pip.

pip install probreg

Or install probreg from source.

git clone https://github.com/neka-nat/probreg.git --recursive
cd probreg
pip install -e .

Getting Started

This is a sample code that reads a PCD file and calls CPD registration. You can easily execute registrations from Open3D point cloud object and draw the results.

import copy
import numpy as np
import open3d as o3
from probreg import cpd

# load source and target point cloud
source = o3.read_point_cloud('bunny.pcd')
target = o3.read_point_cloud('bunny.pcd')
# transform target point cloud
th = np.deg2rad(30.0)
target.transform(np.array([[np.cos(th), -np.sin(th), 0.0, 0.0],
                           [np.sin(th), np.cos(th), 0.0, 0.0],
                           [0.0, 0.0, 1.0, 0.0],
                           [0.0, 0.0, 0.0, 1.0]]))
# compute cpd registration
tf_param, _, _ = cpd.registration_cpd(source, target)
result = copy.deepcopy(source)
result.points = tf_param.transform(result.points)

# draw result
source.paint_uniform_color([1, 0, 0])
target.paint_uniform_color([0, 1, 0])
result.paint_uniform_color([0, 0, 1])
o3.draw_geometries([source, target, result])

Resources

Results

Compare algorithms

CPD SVR GMMTree FilterReg

Noise test

ICP CPD FilterReg

Non rigid registration

CPD SVR

About

Point cloud registration using probabilistic model (CPD/GMMReg/SVR/GMMTree/FilterReg)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.6%
  • C++ 28.2%
  • Makefile 0.2%