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

Home » Public Forums » archive » Re: CONVOL with 2D array and 1D 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: CONVOL with 2D array and 1D kernel [message #52981 is a reply to message #52972] Fri, 09 March 2007 06:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Eric Hudson writes:

> Also, there seems to be a lot of confusion about what CONVOL really
> does. Is there a definitive, readable, source so I can make sure that
> I'm really doing what I want here (a true mathematical convolution
> where I've made the array a bit bigger on the edges by duplicating the
> top & bottom rows, done the convolution, and then chopped off the
> edges to minimize edge effects).

I'm no convolution expert, but the documentation is
pretty clear that if you want to do a convolution in
a "mathematical" sense (as you appear to do), then you
are going to have to explicitly set the CENTER keyword
to zero. Otherwise, you are going to do a convolution
in an "image processing" sense, which may not be what
you had in mind.

Also, have you expanded the 2D array yourself, or are
you hoping IDL is going to do that for you? If you did
it yourself, is it possible some of the values are not
what you think they are?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Hello again, and iTools
Next Topic: Re: IDL support for international characters (unicode)

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

Current Time: Sat Nov 29 11:22:26 PST 2025

Total time taken to generate the page: 8.49714 seconds