mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-23 13:10:18 +08:00
Merge pull request #1667 from odebeir/sprint_euroscipy2015_denoise
Sprint euroscipy2015 denoise
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user