This repository contains the scripts needed to reproduce all the experiments/examples in the paper: SIMPA: An open-source toolkit for simulation and processing of photoacoustic images.
Please follow the installation instructions of the SIMPA package: https://github.com/IMSY-DKFZ/simpa#simpa-installation-instructions.
In order to make sure that all experiments run smoothly, all the external tools required by SIMPA have to be installed as well: https://github.com/IMSY-DKFZ/simpa#external-tools-installation-instructions. IMPORTANT: You have to build the MCX binary with all custom light sources from this GitHub fork: https://www.github.com/IMSY-DKFZ/mcx
After the successful installation of SIMPA, this package can be installed similarly:
git clone https://github.com/IMSY-DKFZ/simpa_paper_experiments.gitcd simpa_paper_experimentsgit pullpip install .
Make sure that you have your preferred virtual environment activated (tested with python 3.8.10) and run:
git clone https://github.com/IMSY-DKFZ/simpa.gitcd simpagit checkout 7eee7bcbee7f652eb6bc3e57fd887c3cdb1cd5c2pip install .pip install memory-profiler matplotlib-scalebar
Make sure that your SIMPA path config file path_config.env contains the paths to MATLAB and the MCX binary and it is located according to:
https://github.com/IMSY-DKFZ/simpa#path-management
There are two options for running all the experiments:
- Execute
bash run_all_experiments.shlocated insimpa_paper_experiments/experiments. - Run each python script separately in the
simpa_paper_experiments/experimentssubdirectories. The memory and run time footprint experiment has to be executed separately. This means that thememory_footprint.pyandevaluate_memory_footprint_resutls.pyscripts are not meant to be executed by themselves. Change your directory tosimpa_paper_experiments/experiments/pa_image_simulationExecute:bash run_memory_footprint_experiment.sh