From e39012aa240736fcc570416f2e0ece8f15c9744a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sat, 6 Oct 2012 22:31:34 +0200 Subject: [PATCH] Add more detailed description of bilateral filter --- skimage/filter/denoise.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/skimage/filter/denoise.py b/skimage/filter/denoise.py index f6b30f6f..50ca0247 100644 --- a/skimage/filter/denoise.py +++ b/skimage/filter/denoise.py @@ -246,6 +246,17 @@ def denoise_bilateral(image, win_size=5, sigma_color=1, sigma_range=1, bins=1e4, mode='constant', cval=0): """Denoise image using bilateral filter. + This is an edge-preserving and noise reducing denoising filter. It averages + pixel based on their spatial closeness and radiometric similarity. + + Spatial closeness is measured by the gaussian function of the euclidian + distance between two pixels and a certain standard deviation + (`sigma_range`). + + Radiometric similarity is measured by the gaussian function of the euclidian + distance between two color values and a certain standard deviation + (`sigma_color`). + Parameters ---------- image : ndarray