June 2015
Beginner
348 pages
8h 44m
English
The scipy.misc module is a utility that loads the image of "Lena". This is the image of Lena Soderberg, traditionally used for image processing examples. We will apply some filters to this image and rotate it. Perform the following steps to do so:
image = misc.lena().astype(np.float32)
plt.subplot(221)
plt.title("Original Image")
img = plt.imshow(image, cmap=plt.cm.gray)Note that we are dealing with a float32 array.
plt.subplot(222) plt.title("Median Filter") filtered = ndimage.median_filter(image, ...Read now
Unlock full access