mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-01 22:23:26 +08:00
remove import/blank lines
This commit is contained in:
@@ -57,12 +57,8 @@ def denoise_bilateral(image, win_size=5, sigma_range=None, sigma_spatial=1,
|
||||
Example
|
||||
-------
|
||||
>>> from skimage import data, img_as_float
|
||||
>>> from skimage.restoration import denoise_bilateral
|
||||
>>> import numpy as np
|
||||
>>>
|
||||
>>> 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)
|
||||
|
||||
Reference in New Issue
Block a user