Augmenting nodules with anatomical context.
CaNA (Context-Aware Nodule Augmentation) is a specialized medical imaging toolkit that uses organ and body segmentation masks as contextual guidance to augment lung nodule segmentation masks. This approach ensures that augmented nodules remain anatomically plausible within their surrounding lung structures.
🎯 Key Features
Context-Aware Augmentation: Uses anatomical context from organ/body segmentation masks
Morphological Operations: Advanced erosion and dilation with anatomical constraints
Dual Processing Modes: Both expansion (150%) and shrinking (75%) capabilities
Docker Integration: Complete containerized workflow with ft42/pins:latest
Comprehensive Logging: Detailed processing statistics and volume analysis
Batch Processing: Handles multiple nodules with JSON dataset configuration
🏥 Medical Applications
Data Augmentation: Generate anatomically-constrained variations of lung nodule datasets
Robustness Testing: Evaluate model performance across nodule size variations
Clinical Research: Study nodule growth/shrinkage patterns within anatomical constraints
Model Training: Enhance training datasets with realistic nodule size variations
🚀 Quick Start
Prerequisites
Docker installed on your system
Input data: Lung segmentation masks with nodule annotations
JSON dataset configuration file
Installation
bash
1# Pull the Docker container2docker pull ft42/pins:latest
34# Clone the repository5git clone https://github.com/your-repo/CaNA
6cd CaNA
Basic Usage
Nodule Expansion (150%)
bash
1# Make script executable2chmod +x CaNA_expanded_p150_DLCS24.sh
34# Run expansion pipeline5./CaNA_expanded_p150_DLCS24.sh
Nodule Shrinking (75%)
bash
1# Make script executable2chmod +x CaNA_shrinked_p75_DLCS24.sh
34# Run shrinking pipeline5./CaNA_shrinked_p75_DLCS24.sh
📊 Expected Results
Processing Output
Augmented Masks: New NIfTI files with modified nodule sizes
Statistics CSV: Detailed volume analysis and processing metrics
Processing Logs: Complete execution logs with timestamps