shapeaxis - compute the axis/orientation of 3d shapes
Version 1.0.0 (1.32 KB) by
Carson Purnell
Provides a vector describing the major axis of any 3d shape represented by a grayscale 3d array.
Shapeaxis determines the major axis of 3d shapes that are encoded within volumetric grayscale arrays. Only useful for shapes that have a real major axis/midline orientation. Allows easy plotting of the shape axis. Intended to make it easy to use imrotate3 for shape-centric rotational operations, a the produced vector is in that axis format.
Outputs the object center if desired, and accept an optional second argument to threshold the grayscale intensity required for a pixel to contribute to the calculations.
Cite As
Carson Purnell (2024). shapeaxis - compute the axis/orientation of 3d shapes (https://www.mathworks.com/matlabcentral/fileexchange/113325-shapeaxis-compute-the-axis-orientation-of-3d-shapes), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022a
Compatible with any release
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 |