An MRI segmentation tool for lung and heart segmentation using PlatyPy library.
git clone https://github.com/XiaoKChenEdu/MRI-Segmentation
cd MRI-Segmentation
pip install -r requirements.txt
chmod +x install_lung.sh
./install_lung.sh
The following Python packages are required:
MRI-Segmentation/
├── requirements.txt
├── lung_segmentation.py
├── lung_segmentation_gui.py
├── heart_segmentation.py
├── heart_segmentation_gui.py
├── input/
│ └── volumes/
└── output/
python lung_segmentation_gui.py
python heart_segmentation_gui.py
python lung_segmentation.py
python heart_segmentation.py
The tool accepts NIFTI files (*.nii.gz) as input. Place your input files in the input/volumes/
directory.
The segmentation results will be saved in the output/
directory, organized in subdirectories named after the input file. Each output directory contains:
- Segmentation masks in NIFTI format (*.nii.gz)
- Visualization of the segmentation (PNG format)