Während ich bereits die Dokumentation über scipy.ndimage.convolve Funktion gefunden habe und ich "praktisch weiß, was es tut", wenn ich versuche, die resultierenden Arrays zu berechnen, kann ich nicht die mathematische Formel folgen . Nehmen wir zum Beispiel:Mathematik hinter scipy.ndimage.convolve
a = np.array([[1, 2, 0, 0],`
[5, 3, 0, 4],
[0, 0, 0, 7],
[9, 3, 0, 0]])
k = np.array([[1,1,1],[1,1,0],[1,0,0]])
from scipy import ndimage
ndimage.convolve(a, k, mode='constant', cval=0.0)
# Why is the result like this ?
array([[11, 10, 7, 4],
[10, 3, 11, 11],
[15, 12, 14, 7],
[12, 3, 7, 0]])
Ich würde eine Schritt für Schritt Berechnung schätzen.
Vielen Dank im Voraus!
Ich bin sehr dankbar für Ihre Erklärung. Ich verstehe endlich, wie diese Werte berechnet wurden / –