September 2014
Intermediate to advanced
512 pages
12h 39m
English
In this recipe, we apply filters on an image for various purposes: blurring, denoising, and edge detection.
In [1]: import numpy as np
import matplotlib.pyplot as plt
import skimage
import skimage.filter as skif
import skimage.data as skid
%matplotlib inlineIn [2]: def show(img):
plt.imshow(img, cmap=plt.cm.gray)
plt.axis('off')
plt.show()In [3]: img = skimage.img_as_float(skid.lena())[...,0] In [4]: show(img)

Read now
Unlock full access