Merge pull request #1667 from odebeir/sprint_euroscipy2015_denoise

Sprint euroscipy2015 denoise
This commit is contained in:
Johannes Schönberger
2015-09-04 08:49:09 -04:00
+8
View File
@@ -55,6 +55,14 @@ def denoise_bilateral(image, win_size=5, sigma_range=None, sigma_spatial=1,
----------
.. [1] http://users.soe.ucsc.edu/~manduchi/Papers/ICCV98.pdf
Example
-------
>>> from skimage import data, img_as_float
>>> astro = img_as_float(data.astronaut())
>>> astro = astro[220:300, 220:320]
>>> noisy = astro + 0.6 * astro.std() * np.random.random(astro.shape)
>>> noisy = np.clip(noisy, 0, 1)
>>> denoised = denoise_bilateral(noisy, sigma_range=0.05, sigma_spatial=15)
"""
mode = _mode_deprecations(mode)
return _denoise_bilateral(image, win_size, sigma_range, sigma_spatial,