Skip to content

About

This repository contains a Python-based pipeline for 3D point cloud registration and geometric evaluation using Open3D. It implements a two-stage alignment process—coarse and fine—to stitch disparate point clouds together and a custom metric to assess the accuracy of the result.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Point Cloud Registration & Evaluation

This project implements a complete pipeline for aligning two 3D point clouds using a combination of Global Coarse Registration (RANSAC) and Local Fine Alignment (ICP). It also includes a custom implementation of the Chamfer Distance metric to evaluate the quality of the registration.

https://miro.medium.com/v2/resize:fit:1200/1*n8bSN3EZKB9qxX27gdOvug.png

Features

  • Two-Stage Alignment: Combines RANSAC-based global registration for rough alignment and ICP for high-precision refinement.
  • Feature Extraction: Uses Fast Point Feature Histograms (FPFH) to identify correspondences between point clouds.
  • Custom Evaluation: Measures geometric similarity using a manually implemented Chamfer Distance algorithm optimized with KD-Trees.
  • Visualization Ready: Generates .ply files compatible with CloudCompare and Open3D.

Installation

Prerequisites

  • Python 3.8+
  • Open3D
  • NumPy
  • SciPy

Setup

git clone https://github.com/yourusername/pointcloud_registration.git
cd pointcloud_registration
pip install open3d numpy scipy

Usage

1. Align Point Clouds

The align.py script takes a source and target cloud, performs registration, and saves the transformed source cloud.

python3 align.py --source input/bunny_source.ply --target input/bunny_target.ply --output result/bunny_aligned.ply

2. Evaluate Alignment

The evaluate.py script computes the Chamfer Distance between the candidate (aligned) cloud and the reference (ground truth) cloud.

python3 evaluate.py --candidate result/bunny_aligned.ply --reference input/bunny_target.ply

Technical Details

Alignment Pipeline

  1. Voxel Downsampling: Reduces point density to speed up feature computation.
  2. Normal Estimation: Computes surface normals for both clouds.
  3. FPFH Features: Generates local geometric descriptors.
  4. RANSAC: Performs global registration to find an initial transformation matrix.
  5. Point-to-Plane ICP: Refines the transformation for maximum precision.

Chamfer Distance

The similarity is calculated using the following mathematical approach: alt text

References

About

This repository contains a Python-based pipeline for 3D point cloud registration and geometric evaluation using Open3D. It implements a two-stage alignment process—coarse and fine—to stitch disparate point clouds together and a custom metric to assess the accuracy of the result.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages