mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-05 14:04:55 +08:00
adjust setup
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
"""
|
||||
====================================================
|
||||
Denoising the picture of Lena using bilateral filter
|
||||
@@ -27,7 +26,7 @@ l = l[230:290, 220:320]
|
||||
noisy = l + 0.4 * l.std() * np.random.random(l.shape)
|
||||
|
||||
selem = disk(30)
|
||||
bilateral_denoised = bilateral_mean(noisy.astype(np.uint8), selem=selem,s0=10,s1=10)
|
||||
approx_bilateral_denoised = bilateral_mean(noisy.astype(np.uint8), selem=selem,s0=10,s1=10)
|
||||
|
||||
plt.figure(figsize=(8, 2))
|
||||
|
||||
@@ -36,14 +35,14 @@ plt.imshow(noisy, cmap=plt.cm.gray, vmin=40, vmax=220)
|
||||
plt.axis('off')
|
||||
plt.title('noisy', fontsize=20)
|
||||
plt.subplot(132)
|
||||
plt.imshow(bilateral_denoised, cmap=plt.cm.gray, vmin=40, vmax=220)
|
||||
plt.imshow(approx_bilateral_denoised, cmap=plt.cm.gray, vmin=40, vmax=220)
|
||||
plt.axis('off')
|
||||
plt.title('bilateral denoising', fontsize=20)
|
||||
|
||||
selem = disk(30)
|
||||
bilateral_denoised = bilateral_mean(noisy.astype(np.uint8), selem=selem,s0=40,s1=40)
|
||||
approx_bilateral_denoised = bilateral_mean(noisy.astype(np.uint8), selem=selem,s0=40,s1=40)
|
||||
plt.subplot(133)
|
||||
plt.imshow(bilateral_denoised, cmap=plt.cm.gray, vmin=40, vmax=220)
|
||||
plt.imshow(approx_bilateral_denoised, cmap=plt.cm.gray, vmin=40, vmax=220)
|
||||
plt.axis('off')
|
||||
plt.title('(more) bilateral denoising', fontsize=20)
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ def configuration(parent_package='', top_path=None):
|
||||
config.add_subpackage('draw')
|
||||
config.add_subpackage('feature')
|
||||
config.add_subpackage('filter')
|
||||
config.add_subpackage('filter/rank')
|
||||
config.add_subpackage('graph')
|
||||
config.add_subpackage('io')
|
||||
config.add_subpackage('measure')
|
||||
|
||||
Reference in New Issue
Block a user