[SciPy-user] ndimage.convolve behaviour?

David Warde-Farley dwf@cs.toronto....
Tue Jun 23 14:35:27 CDT 2009


On 23-Jun-09, at 5:54 AM, Stéfan van der Walt wrote:

> Convolution flips the filter around, unlike correlation, so you are  
> seeing:
>
> (X[:5, :5] * np.fliplr(np.flipud(fm.filter))).sum()


Ah, thanks. Is there some reason/convention for this that I'm unaware  
of? Should this be documented somewhere?

David


More information about the SciPy-user mailing list