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/CAMI-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/CAMI-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/CAMI-DKFZ/mcx
After the successful installation of SIMPA, this package can be installed similarly:
git clone https://github.com/CAMI-DKFZ/simpa_paper_experiments.git
cd simpa_paper_experiments
git pull
Make sure that you have your preferred virtual environment activated (tested with python 3.8.10) and run in the simpa_paper_experiments
folder:
pip install -r requirements.txt
python setup.py develop
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/CAMI-DKFZ/simpa#path-management
There are two options for running all the experiments:
- Execute
bash run_all_experiments.sh
located insimpa_paper_experiments/experiments
. - Run each python script separately in the
simpa_paper_experiments/experiments
subdirectories. The memory and run time footprint experiment has to be executed separately. This means that thememory_footprint.py
andevaluate_memory_footprint_resutls.py
scripts are not meant to be executed by themselves. Change your directory tosimpa_paper_experiments/experiments/pa_image_simulation
Execute:bash run_memory_footprint_experiment.sh