Morph your medical scans into clarity.
MedMorph Editor is a comprehensive application designed for processing and analyzing medical image data, especially in the DICOM format. With a suite of advanced tools for editing, visualizing, and enhancing images, it’s perfect for researchers, students, and professionals in the medical imaging field.
Built with 💡 PyQt5, 🔧 OpenCV, and 🩺 pydicom, it brings a smooth GUI experience fused with hardcore image processing capabilities.
MedMorphProject/
├── src/ # Source code directory
│ └── MedMorph/ # Main application code
├── Data for testing/ # Sample/test DICOM data
├── README.md # Project documentation (this file)
├── requirements.txt # Python dependencies
└── .gitignore # Git ignore rules
- Add noise: Gaussian, Salt & Pepper, Pink noise
- Apply filters: Gaussian, Median, Pink, High-pass, Low-pass
- Adjust contrast and brightness
- Advanced enhancements:
- 📊 Histogram Equalization
- ⚡ CLAHE (Contrast Limited Adaptive Histogram Equalization)
- 🔬 Morphological Enhancements
- Interactive ROI-based selection
- Real-time updates for:
- Signal-to-Noise Ratio (SNR)
- Contrast-to-Noise Ratio (CNR)
- Dynamic zoom (in/out) with interpolation:
- Nearest-Neighbor
- Bilinear
- Cubic
- Resolution scaling for fast rendering
- Displays detailed pixel intensity histograms with:
- Mean
- Median
- Standard Deviation
- Clean feedback for unsupported files
- Handles large datasets like a champ
AnalysisLabel– Handles image interaction and zoom logicMainWindow– Main GUI & logic orchestrator
import_dicom– Load & normalize DICOM filesnormalize_image– Converts pixel values to 8-bit
apply_contrast– Contrast controlapply_brightness– Brightness tuningapply_resolution– Dynamic resolution adjustment
apply_histogram_equalizationapply_claheapply_morphological_enhancement
perform_snr_analysis– SNR/CNR from selected ROIsdelete_analysis_boxes– Reset boxes & results
zoom_in / zoom_out– Zoom functionsselect_viewport– Switch image views
pip install -r requirements.txt
run python MedMorph.py
Click that "Import DICOM" button and choose your, dcm file
Get creative with the toolbar:
- Add noise for a gritty look 🎲
- Apply filters to refresh the vibe 🔄
- Adjust contrast, brightness, or resolution to perfection 🌟
- Want to go next-level? Try CLAHE or Histogram Equalization for some serious enhancement 🔧
Activate the SNR/CNR analysis, pick your regions of interest, and watch the metrics pop up as the app dynamically updates 📊
Zoom in to focus on the fine details 🧐, Adjust interpolation for that ultra-smooth viewing experience ✨
Double-click on an image to open the histogram. Get the lowdown on the stats and see your image in a whole new light 💡
Done? Perfect now close the window or terminate the app from the command line and call it a day 🙌
showcase.mp4
This project is licensed under the MIT License.






