AI engineering glossary · Computer vision

What is median filter?

Median filter: A noise-removal filter that replaces each pixel with the median of the values in its neighbourhood. Unlike averaging, it removes isolated bright or dark specks while keeping edges sharp. It is especially good against isolated speckle noise.

Level: intermediateTopic: Computer vision

Median filter: an example

For the neighbourhood 10, 12, 11, 255, 9, the median is 11, so the 255 speck disappears.

Related terms

More Computer vision terms

Where you learn it

Median filter is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.