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

Home » Public Forums » archive » Random convolution ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Random convolution ? [message #40093] Thu, 08 July 2004 07:15
Emmanuel Christophe is currently offline  Emmanuel Christophe
Messages: 11
Registered: March 2004
Junior Member
Hi,

I got a random effect using convolution:

------------------------------------------------------
imagetest=indgen(256,256,224)
ker=indgen(1,3,5)
r1=convol(double(imagetest),double(ker),/edge_truncate)
r2=convol(double(imagetest),double(ker),/edge_truncate)
r3=convol(double(imagetest),double(ker),/edge_truncate)
print, max(abs(r1-r2))
print, max(abs(r1-r3))
print, max(abs(r2-r3))
end
------------------------------------------------------

The first time, I got
IDL> .GO
85.961538
793.00000
768.00000

and the second time:
IDL> .GO
793.00000
793.00000
0.0000000

And all results should be zero... I suspect a memory effect but how ?

Emmanuel Christophe
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Best method for very big array rebinning?
Next Topic: Best method for very big array rebinning?

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

Current Time: Thu Oct 09 17:05:08 PDT 2025

Total time taken to generate the page: 1.52184 seconds