Additional library SimpleITK and scikit-image are required in addition to those set up in the mphy0030
environment.
conda activate mphy0030
pip install simpleitk scikit-image numpy-stl
Then you can run the script.
cd python
python script_ar.py
Then use any medical image viewer to load the image and the surface model data. The 3D slicer displays it as below.
cd matlab
matlab -nodesktop -r script_ar