This project uses Python and the Visualization Toolkit (VTK) to advance medical data visualisation. It's built around the SPL Head and Neck Atlas, providing tools for rendering both 2D slices and 3D models from medical imaging data.
For more detailed information about the project and sources, refer to the project documentation:
- Python Scripting for Medical Imaging: Utilizes Python for efficient medical data processing and visualisation.
- 2D and 3D Rendering: Capable of producing both 2D slices and 3D models, offering a comprehensive view of medical images.
- SPL Atlas Integration: Leverages this specific medical dataset for detailed anatomical studies.
- Interactive Visualization Tools: Provides tools for interactive exploration of medical images, enhancing understanding and analysis.
- Customizable Output: Allows customization of the visualization output to meet specific user needs.
The code is designed to be flexible, allowing users to explore different parts of the anatomy. You can customize which part of the body to visualize by searching within the downloaded SPL Head and Neck Atlas "models" folder. You can choose the specific models you are interested in to tailor the visualization to your needs. More detailed information is in the code comments.
For an example of how to select different models, see the screenshot in the Images folder:
- Python 3.x
- VTK library
- SPL Head and Neck Atlas data (or another)
NOTE [December 2023] Python 3.12.1 is the newest version so some libraries (e.g. Torch) could not download successfully. If the Could not find a version that satisfies the requirement torch error occurred simply type pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu118. Otherwise search for nightly versions.
- Install Python 3.x from Python's official website.
- Install VTK using pip:
pip install vtk. - Download SPL Head and Neck Atlas from The Open Anatomy Project.
- Install Visual Studio Code (VSC).
- Open VSC, go to the 'Source Control' panel, and click 'Clone Repository'.
- Paste the URL of this GitHub repository and clone it (or use
git clone "https://github.com/TimothyMas/MDV"in your desired directory). - Open the repository folder in VSC.
After cloning the repository:
- Navigate to the script directory.
- Execute the chosen script:
python script_name.pyby simply clicking run.
The codebase includes detailed comments to help understand each function and significant code block. This is especially useful for beginners or those new to Python, VTK, or medical imaging.
Contributions are welcome! Please fork the repository and create a pull request with your improvements.
This project is licensed under the MIT License.

