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

Home » Public Forums » archive » coherence test implementation
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: coherence test implementation [message #15421 is a reply to message #15336] Thu, 13 May 1999 00:00 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Mark Rehbein <mrehbein@aims.gov.au> writes:
>
> Hi,
>
> I'm doing some cloud detection on some rather large images using what
> some people call a coherence test. To do a coherence test on a pixel
> you take a 3x3 matrix around that pixel and assign that pixel the
> standard deviation of the 3x3 matrix. I have implemented this the
> following way:
>
> for y=1, lines-1 do begin
> for x=1, pixels-1 do begin
> ...

As the two posters graciously have demonstrated, they were able to
partially vectorize the algorithm. However, because your procedure
involves *overlapping* portions of the same array, it will never be
possible to fully vectorize it.

Explicit FOR loops are not bad if the work done during one iteration
takes longer than the overhead time with the loop. Of course, that
rule of thumb is somewhat CPU dependent.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@astrog.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: divide by zero problems
Next Topic: little and big endian -- once more

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

Current Time: Sat Oct 11 21:09:51 PDT 2025

Total time taken to generate the page: 1.51891 seconds