Code covered by the BSD License  

Highlights from
Get Rotation Matrix from 2 Orthogonal Planes

Be the first to rate this file! 10 Downloads (last 30 days) File Size: 2.1 MB File ID: #37048
image thumbnail

Get Rotation Matrix from 2 Orthogonal Planes

by Gemma Parra

 

07 Jun 2012

Computes a 3x3 rotation matrix from two orthogonal planes in a 3D point cloud.

| Watch this File

File Information
Description

Shows a 3D point cloud and lets the user select a plane by clicking on two points. The selected plane is highlighted.

The math is pretty simple:

A surface normal is computed for each plane using eigenvectors, later the y axis is set to be 0, any rotation is subtracted from it to obtain orthogonals surface normals. The cross product ot them is computed to obtan the z axis normal and conform the 3x3 rotation matrix.

Acknowledgements

Click3d Point inspired this file.

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File  
Everyone's Tags
3d, callback, cloud, frame, matrix, plane, point, rotation, view
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us