5.0

5.0 | 2 ratings Rate this file 30 Downloads (last 30 days) File Size: 17.87 KB File ID: #28305
image thumbnail

estimateRigidTransform

by Babak Taati

 

26 Jul 2010 (Updated 29 Jul 2010)

estimate the rigid transformation between two sets of 3D point clouds, given a set of point matches

| Watch this File

File Information
Description

This is a simple utility for estimating the rigid transformation that aligns two sets of 3D point clouds, given 3 (or more) point matches.

Input: two sets of 3D point clouds (P1 and P2)
Output: homogeneous transformation that aligns the two clouds
Assumptions:
1- point i in the first point cloud corresponds to point i in the second cloud
2- the transformation is rigid (i.e. only a rotation and a translation)
3- you need at least 3 (non-degenerate) point matches (i.e. they don't lie on a straight line)

The math is basic and well-known. The point of this upload is just to save the little bit of time it would've taken you to code it yourself.

Reference: "Computer Vision, a modern approach" by Forsyth and Ponce

Related:
1- Click3dPoint (on the File Exchange) to manually find a few point correspondences
2- ICP (e.g. Matlat implementation by A. Mian)

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Click3dPoint

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
29 Jul 2010 Janti

Great work.
Correct me if I'm wrong but I think line 28 should read

alignedP1h = estT * P1h;

instead of

alignedP1h = T * P1h;

29 Jul 2010 Babak Taati

Thanks Janti. You're correct. I fixed it.

26 Oct 2011 Andreas  
Please login to add a comment or rating.
Updates
29 Jul 2010

corrected a bug in the demo (as pointed on by Janti in the comments)

Tag Activity for this File
Tag Applied By Date/Time
3d Babak Taati 27 Jul 2010 09:42:57
rigid Babak Taati 27 Jul 2010 09:42:57
rigid transformation Babak Taati 27 Jul 2010 09:42:58
point cloud Babak Taati 27 Jul 2010 09:42:58
alignment Babak Taati 27 Jul 2010 09:42:58
transformation Babak Taati 27 Jul 2010 09:42:58
absolute orientation Matt J 25 Mar 2011 09:45:20

Contact us at files@mathworks.com