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

Home » Public Forums » archive » Re: 2-D Convolutions in IDL w/o zero-padded edges
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: 2-D Convolutions in IDL w/o zero-padded edges [message #56391] Wed, 24 October 2007 01:56 Go to previous message
Tal is currently offline  Tal
Messages: 26
Registered: August 2007
Junior Member
>> Is there a way in IDL to convolve an image with a kernal and return only those parts of the convolution that are computed without zero-padded edges?

Yes. i think so.

if
b is the result
a is the source image
k is the kernel
s is the scale factor (for example: total(k))

then
b = convol(a,k,s,/edge_truncate)

should produce what you want and will not pad the edges with zeros.

hope this helps,
Tal
[Message index]
 
Read Message
Read Message
Previous Topic: Need help reconstructing flat-field. Minimization problem.
Next Topic: Re: transform a floating point into byte or integer in envi

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

Current Time: Mon Oct 13 00:51:43 PDT 2025

Total time taken to generate the page: 0.71918 seconds