How sravanidasari4488/mri_brats works
This repository supports brain-tumor MRI analysis and 3D reconstruction, including a web viewer and a workflow for real hospital studies. A typical user views a study, obtains tumor segmentation and anatomical meshes, and inspects the exported scene. Real-study processing also covers DICOM inventory, preprocessing, and quality checks; evaluation and slice viewing are distinct capabilities. The graph reflects documented calls and module references in the supplied excerpts and SOURCE INDEX; unsampled implementation details and some data-flow links are left unspecified.
Main entry points: scene.py Scene builder · app.py Web app · review_real.py Real-study review · reconstruct.py Reconstruct command
Components 19
Web review
- Web app
web/app.py - Scene viewer
web/static/viewer.js - MRI slices
recon/slices.py
Reconstruction pipeline
- Reconstruct command
scripts/reconstruct.py - Scene builder
recon/scene.py - Tumor inference
recon/infer.py - Segmentation cleanup
recon/postprocess.py - Case loading
recon/io.py - Tumor meshing
recon/mesh.py - Reconstruction outputs
outputs
Clinical MRI
- Study inventory
scripts/inventory_real.py - DICOM preprocessing
recon/ingest_real.py - Study quality checks
recon/qc_real.py - Real-study review
recon/review_real.py
Evaluation and anatomy
- Anatomy meshes
recon/anatomy.py - Tract estimation
recon/tracts.py - Structure catalog
recon/labels.py - Segmentation evaluation
recon/evaluate.py
Other components
- Reviewer
Connections 19
- Reviewer → Web app: uses
- Web app → Scene viewer: serves viewer
web/app.py - Web app → MRI slices: loads slices
web/app.py - Web app → Reconstruct command: invokes
web/app.py - Reconstruct command → Scene builder: builds scene
scripts/reconstruct.py - Reconstruct command → Tumor inference: runs inference
scripts/reconstruct.py - Scene builder → Case loading: loads scans
recon/scene.py - Scene builder → Tumor inference: detects tumor
recon/scene.py - Scene builder → Segmentation cleanup: processes labels
recon/scene.py - Scene builder → Tumor meshing: meshes regions
recon/scene.py - Scene builder → Anatomy meshes: adds anatomy
recon/scene.py - Scene builder → Tract estimation: estimates tracts
recon/scene.py - Scene builder → Structure catalog: uses catalog
recon/scene.py - Scene builder → Segmentation evaluation: uses region masks
recon/scene.py - Scene builder → Reconstruction outputs: exports scene
recon/scene.py - Study inventory → DICOM preprocessing: supplies study inventory
recon/ingest_real.py - Real-study review → DICOM preprocessing: uses preprocessing
recon/review_real.py - Real-study review → Study quality checks: checks study quality
recon/review_real.py - Real-study review → MRI slices: views slices
recon/review_real.py