comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Convolution with non-constant Kernel?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Convolution with non-constant Kernel? [message #73516 is a reply to message #73468] Sat, 13 November 2010 08:23 Go to previous messageGo to previous message
Juggernaut is currently offline  Juggernaut
Messages: 83
Registered: June 2008
Member
On Nov 12, 5:03 pm, chris <rog...@googlemail.com> wrote:
> On 12 Nov., 01:56, SonicKenking <ywa...@gmail.com> wrote:
>
>
>
>> Hi, I wonder if there is an easy way to perform convolution on an
>> array with non-constant kernel.
>
>> The IDL built-in CONVOL function requires the kernel to be a fixed
>> array, e.g.
>> [-1,2,-1]. I want to have a dynamic kernel that changes based on the
>> position of the array. Something like
>
>> array = [8,6,7,9,1,3,4,5], kernel=[sin(index_i-1), 2, sin(index_i+1)]
>
>> Is there any other built-in IDL function that can do this or is there
>> someone who has already coded this up? If the answer is no, I'll go
>> ahead and code my own program. Just checking it here beforehand to
>> avoid re-inventing wheels.
>
>> Thanks!
>
> If you are interested. I have a routine which strictly performs
> discrete convolutions for a 2d array and a 3d kernel without zero
> padding, without loops and for small kernels faster than fft. Just
> send me an email.
>
> Cheers
>
> CR

These types of algorithms would be useful for implementing a tilt-
shift photography on a standard image.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: plot of implicit function
Next Topic: Re: IDLPong, a Pong game in IDL.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 22:18:28 PDT 2025

Total time taken to generate the page: 2.07940 seconds