Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/s/c/scikits-image-0.7.1/doc/gh-pages/0.3/_downloads/plot_lena_tv_denoise.py   scikits-image(Download)
 
from scikits.image import data, color, img_as_ubyte
from scikits.image.filter import tv_denoise
 
l = img_as_ubyte(color.rgb2gray(data.lena()))
l = l[230:290, 220:320]
 
noisy = l + 0.4 * l.std() * np.random.random(l.shape)
 
tv_denoised = tv_denoise(noisy, weight=10)
plt.title('TV denoising', fontsize=20)
 
tv_denoised = tv_denoise(noisy, weight=50)
plt.subplot(133)
plt.imshow(tv_denoised, cmap=plt.cm.gray, vmin=40, vmax=220)