This Python script is a beginner-friendly guide for handling and visualizing medical images. It includes code snippets for reading DICOM, NIfTI, MAT, and TIFF formats, providing a quick start for beginners in medical image processing. The script uses popular libraries like PyDicom, NiBabel, SciPy, and scikit-image.
This repository contains code for building a convolutional autoencoder model to denoise MR images. The autoencoder architecture is designed to remove noise from MR images, simulating real-world scenarios where medical images are subject to noise during acquisition or transmission.
-
Data loading: The MR images are loaded from the specified directory.
-
Adding Noise: White Gaussian noise with variance is added to simulate real-world noise conditions.
-
Model architecture: The convolutional autoencoder model, comprising encoder and decoder layers.
-
Model training: The autoencoder is trained using noisy MR images as input and corresponding noise-free images as output.
-
Model optimization and evaluation: The trained model's performance is optimized by Adam Optimizer and evaluated using Mean Squared Error (MSE) and Peak Signal-to-Noise Ratio (PSNR) metrics.
-
Results visualization: Random samples of original noise-free images, noisy MR images, and denoised images are visualized.