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

Home » Public Forums » archive » Re: Random convolution ?
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: Random convolution ? [message #40092 is a reply to message #40090] Thu, 08 July 2004 07:30 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Emmanuel Christophe writes:

> 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 ?

Don't know. I get all zeros every time I run this.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: good way to subdivide line segments?
Next Topic: Tessellator

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

Current Time: Fri Oct 10 17:49:55 PDT 2025

Total time taken to generate the page: 1.59859 seconds