Creating mesmerizing brain animations by playing with geodesic distances.
Package | Tested version |
---|---|
Python | 3.7.6 |
NumPy | 1.17.2 |
Nibabel | 2.2.1 |
PyVista | 0.30.1 |
LayNii | 2.1.0 (in devel) |
ffmpeg | 4.3.1 |
This project is developed using Debian 10 operating system.
Flooding brains project is just a script compilation for now. Therefore make sure to install each dependency to be able run the scripts.
- Change directory to where your scripts are stored. For example you can use the
scripts
directory that comes with this repository:cd /path/to/flooding/brains/scripts
- Get borders from a segmentation file by running
python prep-flooding_step-01_borders.py
. - Get points on the borders by running:
python prep-flooding_step-02_points.py
. - Get geodesic distances from the points on the borders by running:
python prep-flooding_step-03_distances.py
- Run
python anim-flooding_step-1_prep.py
to find a nice viewing angle. - Run
python anim-flooding_step-2_render.py
for generating animation frames (png).
- Run
bash movie-flooding_compile.sh
to convert the frames into movies (mp4).
Feel free to read, edit and augment all the example scripts to generate different animations.
Please use the GitHub issues for questions.
This project is licensed under MIT.