Anatomy Transformation Analysis
- Computes optimal rigid body transformation (translation + rotation) between landmarks.
- Returns transformation matrix, translation vector, Euler angles, and landmark errors.
- Applies transformation to all mesh vertices.
- Vertex-to-Nearest-Neighbour Distance: Evaluates vertex correspondence between two meshes, visualizable via colormap.
- Hausdorff Distance: Computes the bidirectional Hausdorff distance between two meshes.
- Code structure: The Transformation Class can be integrated into a corresponding main script. The key parts of the code are extracted into individual functions for reuse.
- Import: Import your STL mesh and landmarks into MATLAB
- Apply transformation: Scaling, Translation, Transformation (Kabsch)
- Evaluate accuracy: vertex-to-nearest-neighbour distances, Hausdorff distances
- Results: for visualization or error mapping
- Alignment of anatomical STL models (e.g., pelvis, femur, etc.)
- Quantitative evaluation of registration accuracy
- Mesh comparison and error visualization
- Flexible: Works with any STL-based geometry.
- Quantitative evaluation: Provides Euclidean error, vertex distances, and Hausdorff distance
- Visualization-ready: Distance measures can be mapped onto mesh faces for intuitive color-coded analysis
- C. M. Micheler, J. J. Lang, N. J. Wilhelm, I. Lazic, F. Hinterwimmer, C. Fritz, R. V. Eisenhart-Rothe, M. F. Zäh, and R. H. Burgkart, ‘‘Scaling Methods of the Pelvis without Distortion for the Analysis of Bone Defects,’’ Current Directions in Biomedical Engineering, vol. 8, no. 2, pp.797–800, 2022.
- C. M. Micheler, ‘‘Anatomy Boundary Analysis,’’ MATLAB Central File Exchange, 2025. [Online]. Available: https://ww.mathworks.com/matlabcentral/fileexchange/157001-anatomy-boundary-analysis
- W. Kabsch, ‘‘A solution for the best rotation to relate two sets of vectors,’’ Acta Crystallographica Section A, vol. 32, no. 5, pp. 922–923, sep 1976. [Online].
- W. Kabsch, ‘‘A discussion of the solution for the best rotation to relate two sets of vectors,’’ Acta Crystallographica Section A, vol. 34, no. 5, pp.827–828, sep 1978. [Online].
- E. Schreiber, ‘‘Kabsch algorithm,’’ MATLAB Central File Exchange, 2025. [Online]. Available: https://de.mathworks.com/matlabcentral/fileexchange/25746-kabsch-algorithm
Cite As
Carina Micheler (2025). Anatomy Transformation Analysis (https://uk.mathworks.com/matlabcentral/fileexchange/181345-anatomy-transformation-analysis), MATLAB Central File Exchange. Retrieved .
Micheler, Carina M., et al. “A Comprehensive Computational Workflow for Patient-Specific 3D Reconstruction and Quantitative Analysis of Acetabular Revision Defects.” IEEE Access, vol. 13, 2025, pp. 190238–58, https://doi.org/10.1109/access.2025.3626705.
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Kabsch algorithm, Anatomy Boundary Analysis, Anatomy Defect Analysis
Inspired: Anatomy Defect Analysis
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.
