This repository contains code for a web application that performs lumbar spine muscle segmentation from MRI images. The segmentation is based on a U-NET neural network, and the application allows users to upload their MRI images for processing.
- Upload .raw and .mhd files for processing.
- Utilizes a pre-trained U-NET model for image segmentation.
- Sends processed images by email.
- Provides information about the segmentation process.
- Python 3.11
- Libraries: SimpleITK, NumPy, Flask, Flask-Mail, PyTorch
-
Clone the repository:
git clone https://github.com/yourusername/LumbarSpineSegmentation.git cd LumbarSpineSegmentation -
Install dependencies:
pip install -r requirements.txt
-
Run the application:
python app.py
-
Visit
http://127.0.0.1:5000/in your web browser.
- Set the necessary configurations in the
app.pyfile, including mail server details and data paths.
CNNs: Contains the U-NET model and utility functions.templates: HTML templates for the web application.uploads_folder: Temporary folder to store uploaded files.
The repository is part of the Laboratorio de Procesamiento de Imágenes médicas (LaPIM), which belongs to the CEMSC3 and University Center for Medical Imaging (CEUNIM) of UNSAM. LaPIM focuses on researching medical image processing methods and their translation to clinical and basic science research.
LaPIM (Laboratorio de Procesamiento de Imágenes médicas)
For more information or inquiries, please contact
Feel free to customize it further based on your preferences and specific details about the project.