Median subtract

../../_images/median_subtract_screenshot.png

Median subtraction is a sort of noise filtering which can be used to reduce background noise similar to the rolling ball algorithm. Behind the scenes a rank filter is used to calculate the median of the image intensity, which is subtracted afterwards from the original image.

The kernel size defines the window size used for the rank filter to calculate the median. Bigger kernels reduces more details from the image than smaller ones.

Hint

Bigger filter kernels removes more noise and details from the image.