File:EmiMa-099-Prewitt-x.jpg
Summary
| Description |
English: Grayscale image "EmiMa-099" convolved with Prewitt-x operator
Deutsch: Das Bild "EmiMa-099" wurde in Graustufen umgewandelt und mit dem Prewitt-x operator gefaltet. |
| Date | |
| Source | Own work based on: EmiMa-099.jpg |
| Author | MartinThoma |
#!/usr/bin/env python
from scipy.ndimage import imread
import scipy.misc
from scipy.signal import convolve2d
im = imread('EmiMa-099.jpg', mode='L')
# Edge filter (Prewitt-x)
weights = [[-1, -1, -1], [0, 0, 0], [1, 1, 1]]
im_res = convolve2d(im, weights, mode='same')
scipy.misc.toimage(im_res).save('EmiMa-099-Prewitt-x.jpg')
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
| This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
| The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
|