Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Avoiding FOR lo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 22 Topic 5614 of 5919
Post > Topic >>

Avoiding FOR loops (version googleplex.infinity)

by Gaurav <selfishgaurav@[EMAIL PROTECTED] > Apr 7, 2008 at 05:42 AM

Dear all,

I know IDL provides us with neat tricks to avoid the processor monster
called FOR loop but I always tend to become incapable using the magic
tricks viz WHERE when I need them the most. Will someone please show
me the way here.

What I have is a 2D Byte array. For each element I need to find the
number of elements in a surrounding 5 X 5 window that is equal to the
element under scrutiny. It is easy to achieve this using FOR loops and
EXTRAC & WHERE functions, but it obviously becomes very slow for large
arrays.

How do I avoid the FOR loop in this case using wildcards and the ":"
operator?

Like always, I hope I do not get to gnaw at my fingernails for long.

Cheers
Gaurav
 




 22 Posts in Topic:
Avoiding FOR loops (version googleplex.infinity)
Gaurav <selfishgaurav@  2008-04-07 05:42:57 
Re: Avoiding FOR loops (version googleplex.infinity)
MichaelT <michael.theu  2008-04-07 09:19:34 
Re: Avoiding FOR loops (version googleplex.infinity)
MichaelT <michael.theu  2008-04-07 09:25:26 
Re: Avoiding FOR loops (version googleplex.infinity)
MichaelT <michael.theu  2008-04-07 09:27:11 
Re: Avoiding FOR loops (version googleplex.infinity)
Gaurav <selfishgaurav@  2008-04-07 22:31:09 
Re: Avoiding FOR loops (version googleplex.infinity)
Gaurav <selfishgaurav@  2008-04-08 02:41:04 
Re: Avoiding FOR loops (version googleplex.infinity)
nathan12343 <nathan123  2008-04-08 14:33:45 
Re: Avoiding FOR loops (version googleplex.infinity)
Gaurav <selfishgaurav@  2008-04-09 05:33:46 
Re: Avoiding FOR loops (version googleplex.infinity)
MichaelT <michael.theu  2008-04-09 05:56:32 
Re: Avoiding FOR loops (version googleplex.infinity)
Tom McGlynn <tam@[EMAI  2008-04-09 08:18:15 
Re: Avoiding FOR loops (version googleplex.infinity)
Gaurav <selfishgaurav@  2008-04-09 23:13:54 
Re: Avoiding FOR loops (version googleplex.infinity)
Tom McGlynn <tam@[EMAI  2008-04-10 11:49:22 
Re: Avoiding FOR loops (version googleplex.infinity)
Gaurav <selfishgaurav@  2008-04-10 23:15:39 
Re: Avoiding FOR loops (version googleplex.infinity)
David Fanning <news@[E  2008-04-11 06:56:00 
Re: Avoiding FOR loops (version googleplex.infinity)
"R.G. Stockwell"  2008-04-11 10:15:51 
Re: Avoiding FOR loops (version googleplex.infinity)
David Fanning <news@[E  2008-04-11 10:44:55 
Re: Avoiding FOR loops (version googleplex.infinity)
Greg Hennessy <greg.he  2008-04-11 17:32:39 
Re: Avoiding FOR loops (version googleplex.infinity)
David Fanning <news@[E  2008-04-11 11:38:29 
Re: Avoiding FOR loops (version googleplex.infinity)
weitkamp@[EMAIL PROTECTED  2008-04-11 00:52:05 
Re: Avoiding FOR loops (version googleplex.infinity)
Gaurav <selfishgaurav@  2008-04-11 05:41:45 
Re: Avoiding FOR loops (version googleplex.infinity)
Tom McGlynn <tam@[EMAI  2008-04-11 08:04:09 
Re: Avoiding FOR loops (version googleplex.infinity)
Gaurav <selfishgaurav@  2008-04-14 22:46:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 14:11:35 CDT 2008.