Align/Rotate Point Cloud Along Z direction based on PCA
This function rotates the point cloud of the highest eigenvector
to be along z-direction.
For the 2nd highest eigenvector, the user can choose to align either
along x or y direction
parameters:
inputs:
pc: point cloud of size N * 3 size
direction: 'x' or 'y' (align the 2nd highest eigenvector along 'x' or
'y' direction
output:
pc2: rotated point cloud
Cite As
Kin Sung Chan (2024). Align/Rotate Point Cloud Along Z direction based on PCA (https://www.mathworks.com/matlabcentral/fileexchange/79472-align-rotate-point-cloud-along-z-direction-based-on-pca), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |