Skip to content

This is a medical data visualization program. This takes in some medical DICOM, MRI, CT data and produces 3D model. There are also other tools included such as image scroller, image segmentation, brain 3d model, bone 3d model visualizer.

Notifications You must be signed in to change notification settings

ashahrior/Medical-Data-Visualization-3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Medical Data Visualization 3D

A comprehensive medical imaging application for 3D visualization and analysis of medical data including DICOM, MRI, and CT scans. Built with ITK and VTK libraries for professional-grade medical image processing and rendering.

Features

  • Volume Rendering: High-performance 3D visualization of brain and CT bone data using GPU ray casting
  • DICOM Series Viewer: Interactive slice-by-slice navigation through medical image series
  • Medical Segmentation:
    • Confidence Connected segmentation for brain white matter extraction
    • Watershed segmentation for advanced image analysis
  • Multi-format Support: DICOM directories, MetaImage files (.mha), MRI, and CT data
  • Interactive Navigation: Mouse wheel and keyboard controls for 3D manipulation
  • Real-time Rendering: GPU-accelerated volume rendering with customizable transfer functions

Installation

Prerequisites

Windows

Linux/Ubuntu

  • GCC 7.0+ or Clang 6.0+
  • CMake 3.0+
  • VTK development libraries
  • ITK development libraries
  • OpenGL development libraries
# Ubuntu/Debian
sudo apt-get update
sudo apt-get install build-essential cmake
sudo apt-get install libvtk9-dev libinsighttoolkit5-dev
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev

macOS

  • Xcode Command Line Tools
  • CMake 3.0+
  • VTK and ITK (via Homebrew recommended)
# Install Homebrew if not already installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install dependencies
brew install cmake vtk itk

Building the Project

  1. Clone the repository

    git clone <repository-url>
    cd Medical-Data-Visualization-3D
  2. Build with CMake

    mkdir build
    cd build
    cmake ../src
  3. Compile

    Windows

    • Open the generated .sln solution file in Visual Studio
    • Run Visual Studio as Administrator
    • Build the solution
    • Executable will be generated in /bin/debug/

    Linux/macOS

    make -j$(nproc)  # Linux
    make -j$(sysctl -n hw.ncpu)  # macOS
  4. Run the application

    # Windows
    ./bin/debug/PROJECT.exe
    
    # Linux/macOS
    ./PROJECT

Usage

The application provides a console-based menu with 5 main operations:

  1. Volume Rendering for Brain Data: Render 3D brain volumes from DICOM or MetaImage files
  2. Volume Rendering for CT Bone Data: Specialized CT bone visualization
  3. Medical Data Watershed Segmentation: Advanced image segmentation using watershed algorithm
  4. DICOM Series Viewer: Navigate through DICOM image series slice by slice
  5. Confidence Connected Segmentation: Extract brain white matter regions

Controls

  • Mouse Wheel: Navigate through image slices
  • Arrow Keys: Up/Down for slice navigation
  • Right Mouse + Drag: Zoom and rotate in 3D view
  • Trackball Camera: Interactive 3D navigation

Architecture

  • Language: C++
  • Medical Image Processing: ITK (Insight Toolkit)
  • 3D Visualization: VTK (Visualization Toolkit)
  • Build System: CMake
  • Platform: Cross-platform (Windows, Linux, macOS)

The application uses a modular header-only design with specialized modules for different medical imaging tasks, featuring ITK-to-VTK pipeline integration for seamless data processing and visualization.

Screenshots

Volume Rendering DICOM Viewer Segmentation 3D Rendering

Contributing

This project is part of a medical imaging research initiative. Contributions are welcome for:

  • Additional medical image format support
  • Performance optimizations
  • UI/UX enhancements
  • Documentation improvements

Known Limitations

⚠️ Note: The current codebase includes Windows-specific dependencies (windows.h, dos.h) that may require modification for full Linux/macOS compatibility. The build instructions above assume these dependencies can be conditionally compiled or replaced with cross-platform alternatives.

License

Please refer to the project's license file for usage rights and restrictions.

About

This is a medical data visualization program. This takes in some medical DICOM, MRI, CT data and produces 3D model. There are also other tools included such as image scroller, image segmentation, brain 3d model, bone 3d model visualizer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published