[Numpy-discussion] convolve optimisation...
Wed Jun 24 11:06:12 CDT 2009
do you mean that the values in the kernel depends on the kernels
position relative to the data to be convolved, or that the kernel is
not composed of homogeneous values but otherwise does not change as it
is slid around the source data?
If the case is the latter, you may be better off doing the convolution
in the fourier domain.
On Wed, Jun 24, 2009 at 8:58 AM, fred<email@example.com> wrote:
> Stéfan van der Walt a écrit :
>> If your kernel varies with i and j, you have little choice but to do
>> this at the C level.
>> Have a look at the Cython convolution example here:
> I'm looking at it.
>> Alternatively, David Cournapeau can take this opportunity to
>> illustrate his very nifty Neighbour Iterator.
> Numpy-discussion mailing list
More information about the Numpy-discussion