MRI Noise Reduction: Five Filters Compared

MRI Noise Reduction: Five Filters Compared

Objective

Remove noise without erasing anatomy

Noise in MRI hides fine anatomy, but aggressive smoothing destroys the very edges a radiologist reads. This experiment applies five denoising filters to the same noisy sagittal brain MRI and compares how each trades noise suppression against edge and texture preservation.

Tools & Data

Language Python
Computer vision OpenCV — blur, GaussianBlur, medianBlur, bilateralFilter, fastNlMeansDenoising
Visualisation Matplotlib
Environment Google Colab
Data Noisy sagittal brain MRI (teaching image)

Original vs Non-Local Means

Original vs Non-Local Means

Filters Compared

Mean (5×5)

Averages each neighbourhood. Very fast, reduces random noise, but blurs edges noticeably.

Gaussian (5×5)

Gaussian-weighted smoothing. Handles Gaussian noise while keeping structure better than the mean filter.

Median (5×5)

Non-linear; replaces each pixel with the neighbourhood median. Excellent on salt-and-pepper noise and keeps edges.

Bilateral (d=9, σ=75)

Weights neighbours by both distance and intensity difference, smoothing flat regions while preserving sharp boundaries.

Non-Local Means (h=10)

Averages similar patches across the whole image. Best detail and texture preservation, at the highest compute cost.

Trade-off Summary

Fastest

Mean filter

Very fast, poor edge preservation

Best for impulse noise

Median filter

Good edges, fast

Best edges

Bilateral & NLM

Excellent preservation, slower

Why It Matters

Choosing the right filter is an engineering decision

There is no single best denoiser — the right choice depends on the noise model, the anatomy that must survive and the compute budget. These classical filters are also the benchmarks that learned denoisers are compared against.

Coursework for the Medical Imaging Laboratory (BME-3202), B.Sc. Biomedical Engineering, Islamic University.

Want something like this?

Let's talk about your project requirements.

Start a Project