Replace deprecated function call

This commit is contained in:
Johannes Schönberger
2012-10-18 17:10:07 +02:00
parent a41163beb0
commit 8347bd449f
+3 -3
View File
@@ -30,7 +30,7 @@ import numpy as np
import matplotlib.pyplot as plt
from skimage import data, color, img_as_float
from skimage.filter import tv_denoise, denoise_bilateral
from skimage.filter import denoise_tv, denoise_bilateral
lena = img_as_float(data.lena())
lena = lena[220:300, 220:320]
@@ -43,14 +43,14 @@ fig, ax = plt.subplots(nrows=2, ncols=3, figsize=(8, 5))
ax[0, 0].imshow(noisy)
ax[0, 0].axis('off')
ax[0, 0].set_title('noisy')
ax[0, 1].imshow(tv_denoise(noisy, weight=0.1))
ax[0, 1].imshow(denoise_tv(noisy, weight=0.1))
ax[0, 1].axis('off')
ax[0, 1].set_title('TV')
ax[0, 2].imshow(denoise_bilateral(noisy, sigma_range=0.03, sigma_spatial=15))
ax[0, 2].axis('off')
ax[0, 2].set_title('Bilateral')
ax[1, 0].imshow(tv_denoise(noisy, weight=0.2))
ax[1, 0].imshow(denoise_tv(noisy, weight=0.2))
ax[1, 0].axis('off')
ax[1, 0].set_title('(more) TV')
ax[1, 1].imshow(denoise_bilateral(noisy, sigma_range=0.06, sigma_spatial=15))