File:EmiMa-099-Prewitt-y.jpg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(5,543 × 3,695 pixels, file size: 510 KB, MIME type: image/jpeg)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Grayscale image "EmiMa-099" convolved with Prewitt-y operator
Deutsch: Das Bild "EmiMa-099" wurde in Graustufen umgewandelt und mit dem Prewitt-y operator gefaltet.
Date
Source Own work
Author MartinThoma
Other versions
File:EmiMa-099.jpg
EmiMa-099
#!/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-y)
weights = [[-1, 0, 1]], [-1, 0, 1], [-1, 0, 1]
im_res = convolve2d(im, weights, mode='same')
scipy.misc.toimage(im_res).save('EmiMa-099-Prewitt-y.jpg')

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero 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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current07:10, 9 February 2019Thumbnail for version as of 07:10, 9 February 20195,543 × 3,695 (510 KB)MartinThoma (talk | contribs){{Information |description ={{en|1=Grayscale image "EmiMa-099" convolved with Prewitt-y operator}} {{de|1=Das Bild "EmiMa-099" wurde in Graustufen umgewandelt und mit dem Prewitt-y operator gefaltet.}} |date =2019-02-09 |source ={{own}} |author =User:MartinThoma |other versions=thumb|EmiMa-099 }} <source lang="Python"> #!/usr/bin/env python from scipy.ndimage import imread import scipy.misc from scipy.signal import convolve2d im = imread...

There are no pages that use this file.