A 3D extension of MATLAB's phantom function - generates a phantom consisting of an arbitrary number of ellipsoids in 3D.
Originally written by Matthias Schabel and extended by Patrick Bolan to support anisotropic phantom dimensions.
I had some memory issues while generating larger phantoms, so I improved the code's memory efficiency (using two 2D meshgrids + a for-loop instead of three 3D meshgrids). The function also supports optional command window outputs and the ability to choose the output datatype (single/double).
プラットフォームの互換性Windows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!