Update README with complete feature list and usage instructions
Browse files
README.md
CHANGED
|
@@ -18,18 +18,35 @@ A medical image segmentation application using SAM 3 (Segment Anything Model 3)
|
|
| 18 |
|
| 19 |
- π§ **SAM 3 Integration**: Uses the latest Segment Anything Model 3 for medical image segmentation
|
| 20 |
- π **DICOM Support**: Process CT and MRI DICOM files
|
|
|
|
| 21 |
- π― **Text Prompts**: Describe what you want to segment (e.g., "brain", "tumor", "skull")
|
| 22 |
- βοΈ **Windowing Strategies**: Optimized windowing presets for CT images
|
| 23 |
- π¨ **Visualization**: Overlay segmentation masks on medical images
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
## Usage
|
| 26 |
|
| 27 |
-
|
|
|
|
| 28 |
2. Enter a text prompt describing what to segment
|
| 29 |
3. Select the imaging modality (CT or MRI)
|
| 30 |
4. Choose the windowing strategy (for CT images)
|
| 31 |
5. Click "Segment Structure" to process
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
## Requirements
|
| 34 |
|
| 35 |
- Python 3.8+
|
|
|
|
| 18 |
|
| 19 |
- π§ **SAM 3 Integration**: Uses the latest Segment Anything Model 3 for medical image segmentation
|
| 20 |
- π **DICOM Support**: Process CT and MRI DICOM files
|
| 21 |
+
- πΌοΈ **Image Formats**: Supports DICOM (.dcm), PNG, and JPG files
|
| 22 |
- π― **Text Prompts**: Describe what you want to segment (e.g., "brain", "tumor", "skull")
|
| 23 |
- βοΈ **Windowing Strategies**: Optimized windowing presets for CT images
|
| 24 |
- π¨ **Visualization**: Overlay segmentation masks on medical images
|
| 25 |
+
- π **Interactive Slice Viewer**: Scroll through multiple slices from the same subject
|
| 26 |
+
- π **Subject Detection**: Automatically groups images by patient/subject ID
|
| 27 |
+
- π **Ground Truth Comparison**: Compare SAM 3 results with expert annotations (Dice score, IoU)
|
| 28 |
|
| 29 |
## Usage
|
| 30 |
|
| 31 |
+
### Single Image Processing
|
| 32 |
+
1. Upload a DICOM (.dcm), PNG, or JPG file
|
| 33 |
2. Enter a text prompt describing what to segment
|
| 34 |
3. Select the imaging modality (CT or MRI)
|
| 35 |
4. Choose the windowing strategy (for CT images)
|
| 36 |
5. Click "Segment Structure" to process
|
| 37 |
|
| 38 |
+
### Interactive Slice Viewer
|
| 39 |
+
1. Upload multiple slices/images from the same subject
|
| 40 |
+
2. Click "π Detect Subjects" to auto-group by patient ID
|
| 41 |
+
3. Select a subject from the dropdown
|
| 42 |
+
4. Click "Process All Slices"
|
| 43 |
+
5. Use the slider or navigation buttons to scroll through slices
|
| 44 |
+
|
| 45 |
+
### Compare with Ground Truth
|
| 46 |
+
1. Upload a medical image and its ground truth mask
|
| 47 |
+
2. Enter segmentation prompt
|
| 48 |
+
3. Click "Compare Segmentation" to see metrics (Dice score, IoU)
|
| 49 |
+
|
| 50 |
## Requirements
|
| 51 |
|
| 52 |
- Python 3.8+
|