Skip to content

maryam305/3D_Organs_visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

24 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿซ€ Human Body Systems Viewer

Python License VTK

๐Ÿฉบ Interactive 3D medical visualization system for exploring human anatomy

โœจ Features โ€ข ๐Ÿ“ฅ Installation โ€ข ๐Ÿš€ Quick Start โ€ข ๐Ÿ“– Usage


Screenshot 2025-11-10 111920

๐Ÿ“‘ Table of Contents


๐Ÿฉบ Overview

This repository provides interactive human body system viewers using Python/Qt and VTK, featuring integrated 3D clipping and curved MPR tools for NIfTI/DICOM volumes โ€” along with realistic signal-driven animations and ECG simulation.

It includes dedicated modules for: ๐Ÿซ€ Cardiovascular | ๐Ÿง  Nervous | ๐Ÿ’ช Musculoskeletal | ๐Ÿฆท Dental systems
All systems are launched via a Tkinter-based main interface or standalone entry points.


โœจ Features

๐ŸŽฏ Core Systems

๐Ÿซ€ Cardiovascular System

  • ๐Ÿ’— Real-time ECG simulation with conduction modeling
  • ๐Ÿ“Š Heart sounds and audio cues
  • ๐Ÿ—ฃ๏ธ Text-to-speech annotations
  • ๐Ÿฉธ Interactive vessel visualization
  • โœ‚๏ธ Integrated advanced clipping with anatomical planes
  • ๐Ÿ” Integrated curved MPR for volume exploration
update.heart.animation.online-video-cutter.com.mp4

๐Ÿง  Nervous System

  • ๐Ÿงฌ Brain visualization
  • ๐Ÿ“Š EEG-driven surface coloring
  • โšก Neural signal pathway animation with glow effects
  • โœ‚๏ธ Integrated multi-plane clipping tools
  • ๐Ÿ” Integrated curved MPR (Multiplanar Reconstruction)
signals.brain.online-video-cutter.com.mp4

๐Ÿฆด Musculoskeletal System

  • ๐Ÿ’ช Bone and muscle rendering
  • โšก Neural signal visualization with motor pathway simulation
  • ๐Ÿฆต Stair climbing animation sequence (signal โ†’ knee flex)
  • ๐ŸŽจ Advanced quality controls
  • โœจ Edge enhancement options
  • โœ‚๏ธ Integrated advanced clipping
  • ๐Ÿ” Integrated curved MPR
leg.animation.mp4

๐Ÿฆท Dental System

  • ๐Ÿ˜ Teeth segmentation
  • ๐ŸŽจ Color preset management
  • ๐Ÿ”ง Procedural tooth generation
  • ๐Ÿ’ซ Neural signal animation
  • ๐Ÿฆด Jaw movement control (open/close)
  • โœ‚๏ธ Integrated advanced clipping
  • ๐Ÿ” Integrated curved MPR
teeth.neural.jaw.online-video-cutter.com.mp4

๐Ÿ› ๏ธ Integrated Advanced Tools

All systems now include built-in access to:

  • โœ‚๏ธ Advanced Clipping: Interactive 3D clipping with axial/coronal/sagittal planes

    • Octant clipping (hide specific regions: left/right/front/back/top/bottom)
    • Visual anatomical plane overlays (colored by orientation)
    • Real-time plane position adjustment
  • ๐Ÿ“Š Curved MPR: Interactive curved multiplanar reconstruction

    • Load NIfTI, DICOM
    • Draw custom curved paths on 2D slices
    • Generate straightened CPR images along the path
    • Adjustable slice range selection
  • ๐Ÿ“ˆ ECG Widget: Embeddable real-time ECG display with dark theme (Cardiovascular)

  • ๐Ÿงช Enhanced Animations:

    • Blood-flow particle animation (Cardiovascular)
    • Neural pathway visualization (Nervous & Musculoskeletal)
    • Jaw movement cycles (Dental)

๐Ÿ“ฅ Installation

โš™๏ธ Prerequisites

  • ๐Ÿ Python 3.10+
  • ๐Ÿ–ฅ๏ธ GPU recommended (optional, for enhanced rendering)

๐Ÿ“ฆ Install Dependencies

pip install PyQt5
pip install vtk
pip install numpy
pip install scipy
pip install matplotlib
pip install pandas
pip install pillow
pip install pyttsx3
pip install nibabel  # Required for MPR functionality

Or use the requirements file:

pip install -r requirements.txt

๐Ÿš€ Quick Start

๐ŸŽฎ Launch Main Interface

python main.py

The main launcher provides buttons to start each system module in a separate process.

๐Ÿƒ Run Individual Systems Directly

# ๐Ÿซ€ Cardiovascular system
python cardiovascular_system.py

# ๐Ÿง  Nervous system
python nervous_system.py

# ๐Ÿฆด Musculoskeletal system
python musculoskeletal_system.py

# ๐Ÿฆท Dental system
python dental_system.py

๐Ÿ“– Usage

๐Ÿ” Curved MPR Tool (Integrated)

Access from the "๐Ÿ” Curved MPR" tab in any system:

  1. Click "Open MPR Tool" button
  2. ๐Ÿ“‚ Load NIfTI/DICOM
  3. ๐ŸŽฏ Use 'Display Slice' slider to browse through the volume
  4. ๐ŸŽจ Set 'CPR Start/End' slice range for the reconstruction depth
  5. ๐Ÿ–ฑ๏ธ Click on the 2D image to draw curve points along your desired path
  6. โœจ Click "Generate CPR" to create straightened view

โœ‚๏ธ Advanced Clipping (Integrated)

Access from the "โœ‚๏ธ Clipping" tab in any system:

  1. Click "Open Advanced Clipping" button
  2. ๐ŸŽš๏ธ Position clipping planes using X/Y/Z sliders (0-100%)
  3. ๐Ÿ‘๏ธ Toggle anatomical plane overlays (Axial=Blue, Sagittal=Red, Coronal=Green)
  4. ๐Ÿงญ Select octant regions to hide (Left/Right/Front/Back/Top/Bottom)
  5. โŒจ๏ธ Use "Reset All" to restore default view

๐Ÿ’— ECG Simulation (Cardiovascular)

The cardiovascular module includes:

  • ๐Ÿ“ˆ P-QRS-T wave generation
  • ๐Ÿ’— Atrial and ventricular contraction mapping
  • ๐Ÿ“Š Synchronized heart sounds
  • ๐Ÿ—ฃ๏ธ Optional text-to-speech guidance

โšก Neural Signal Animation (Nervous & Musculoskeletal)

Nervous System:

  • Watch neural pathways light up on the brain surface
  • Choose from Pain, Vision, or Thinking pathways
  • Adjustable animation speed

Musculoskeletal System:

  • Stair climbing sequence: Neural signal โ†’ Knee flexion โ†’ Reset
  • Starts with left leg, then right leg
  • Realistic motor pathway simulation

๐Ÿฆท Dental Animations

  • Neural signal propagation through teeth (root to crown)
  • Jaw movement control (open/close with sound effects)
  • Combined sequence: Signal โ†’ Open โ†’ Signal โ†’ Close

๐Ÿ“ Project Structure

๐Ÿ“ฆ human-body-systems/
โ”œโ”€โ”€ ๐Ÿš€ main.py                      # Tkinter launcher (subprocess-based)
โ”œโ”€โ”€ ๐Ÿซ€ cardiovascular_system.py     # Heart & vessels with ECG + integrated tools
โ”œโ”€โ”€ ๐Ÿง  nervous_system.py            # Brain viewer + integrated tools
โ”œโ”€โ”€ ๐Ÿฆด musculoskeletal_system.py    # Bones & muscles + integrated tools
โ”œโ”€โ”€ ๐Ÿฆท dental_system.py             # Dental visualization + integrated tools
โ”œโ”€โ”€ ๐Ÿ“‹ requirements.txt             # Python dependencies
โ””โ”€โ”€ ๐Ÿ“„ README.md                    # This file

Note: clipping.py and mpr.py have been removed. Their functionality is now integrated into each system module.


๐Ÿ“‚ Supported Formats

Type Extensions Description
Meshes .stl, .obj, .ply, .vtk 3D anatomical models
Volumes .nii, .nii.gz, DICOM, PNG stacks Medical imaging volumes (for MPR)
Audio .wav, .mp3 Heart sounds / voice guidance

๐Ÿงฉ Data Sources & Citations

These datasets were partially used in this project for testing, visualization, and evaluation purposes.

3D Multimodal Dental Dataset based on CBCT and Oral Scan โ€” Figshare
A multimodal 3D dataset combining Cone Beam CT (CBCT) and intraoral scans, designed for dental anatomy and visualization research.
Please refer to the original Figshare page for citation details and licensing information.

https://figshare.com/articles/dataset/_b_3D_multimodal_dental_dataset_based_on_CBCT_and_oral_scan_b_/26965903?file=49086406

Healthy-Total-Body-CTs โ€” The Cancer Imaging Archive (TCIA)
https://www.cancerimagingarchive.net/collection/healthy-total-body-cts/

A dataset containing low-dose, whole-body CT scans of 30 healthy subjects with detailed tissue segmentation (organs, fat, muscle, etc.).

Data Citation:
Selfridge, A. R., Spencer, B., Shiyam Sundar, L. K., Abdelhafez, Y., Nardo, L., Cherry, S. R., & Badawi, R. D. (2023). Low-Dose CT Images of Healthy Cohort (Healthy-Total-Body-CTs) (Version 2) [Dataset]. The Cancer Imaging Archive. https://doi.org/10.7937/NC7Z-4F76


๐ŸŽฎ Interactive Controls

Action Control
Rotate 3D view Left mouse drag
Pan camera Right mouse drag
Zoom Mouse scroll
Reset camera R key
Toggle clipping Access via Clipping tab
Adjust opacity Use opacity sliders in UI
Enable curved MPR Access via MPR tab
Focus on region Enable Focus Mode, then click
Toggle wireframe W key

๐Ÿค Contributing

Contributions are welcome! ๐ŸŽ‰

To contribute:

  1. Fork this repo
  2. Create a feature branch (git checkout -b feature-name)
  3. Commit changes (git commit -m "Add feature")
  4. Push and open a PR

Please ensure code follows PEP8 and includes minimal documentation.


๐Ÿ“œ License

This project is provided as-is for educational and research purposes. Not intended for clinical diagnostic use.


๐Ÿ™ Acknowledgments

  • ๐Ÿ› ๏ธ Built with VTK, PyVista, and Qt
  • ๐Ÿฅผ Medical imaging support via nibabel and pydicom
  • ๐Ÿ’— ECG simulation based on physiological models

๐Ÿ“ง Contact

Project Contributor: Maryam Moustafa

Project Contributor: Aya Sayed

Project Contributor: Nour Ahmed

Project Contributor: Mahmoud Mazen


Made with โค๏ธ for medical visualization and education

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages