CircleMedianFilter

Circle median filter toolbox (CMF)

This toolbox contains a fast algorithm for median filtering of signals and images with values on the unit circle, for example phase or orientation data. The (arc distance) median filter for an image y with values on the unit circle is given by

where d denotes the arc distance length of two angles, and r, t are the horizontal and vertical “radii” of the filter mask.

The code is a reference implementation (in C++ with Matlab wrappers) of the algorithms described in the paper:

Martin Storath, Andreas Weinmann. Fast median filtering for phase or orientation data. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(3):639-652, 2018 (preprint)

See also View Circle Median Filter on File Exchange

Updates

Example

alt tag

Left: A circle-valued image, i.e. every pixel takes its value on the unit circle (or in angular representation a value in (-pi, pi]). The values are visualized as hue component in the HSV color space. Right: Effect of the circle-median filter using a filter mask of size 7 × 7.

Runtime comparison

The time complexity w.r.t. the size of the filter mask is

Applications

Contents

Installation and usage

Python

Matlab

References

How to cite