python scikit-imageを使う
- python2を使う(Linux(manjaro)でのモジュールインストール)
sudo pacman -S python2-numpy sudo pacman -S python2-scipy sudo pacman -S python2-matplotlib sudo pacman -S python2-scikit-image
$ python2
import numpy as np import matplotlib.pyplot as plt x = np.arange(-3, 3, 0.1) y = np.sin(x) plt.plot(x, y) plt.show()
from skimage import data, io, filter image = data.coins() # or any NumPy array! edges = filter.sobel(image) io.imshow(edges) io.show()