Programming Parallel Computers 2019

Exercise MF: median filter

Overview

In this task, we will implement a program for doing 2-dimensional median filtering with a rectangular window.

Examples

In these examples, for each color component, the value of each pixel is the median of all pixel values within a sliding window of dimensions (2k+1) × (2k+1). Hover the mouse on the output images to see the differences between input and output.

k = 1

Input OutputOutput
Input OutputOutput

k = 2

Input OutputOutput
Input OutputOutput

k = 5

Input OutputOutput
Input OutputOutput

k = 10

Input OutputOutput
Input OutputOutput

Noise reduction, k = 1

Input OutputOutput
Input OutputOutput

Noise reduction, k = 2

Input OutputOutput
Input OutputOutput