All notes
Scikit-imag

Examples

Draw checkboard:


import numpy as np
check = np.zeros((9, 9))
check[::2, 1::2] = 1
check[1::2, ::2] = 1
import matplotlib.pyplot as plt
plt.imshow(check, cmap='gray', interpolation='nearest')
# Other interpolation: bilinear, bicubic

Read and display images:


from skimage import io
import pylab

img = io.imread('d:/test0601.png');
pylab.imshow(img);

from skimage import data, io, filters

image = data.coins() # or any NumPy array!
edges = filters.sobel(image)
io.imshow(edges)
io.show()