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 > Re: how to deal...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 5601 of 6457
Post > Topic >>

Re: how to deal with problem:Loop limit expression too large for loop variable type.

by David Fanning <news@[EMAIL PROTECTED] > Apr 5, 2008 at 07:07 AM

armand.jongen@[EMAIL PROTECTED]
 writes:

> On 5 apr, 08:13, Magic.Z...@[EMAIL PROTECTED]
 wrote:
> > OK, I get that, seem I always some details in programming. thank you!
> 
> But you better use the WHERE function for problems like these:
> 
> locs = WHERE((Seg_Grey_Image LE 255) AND (Seg_Grey_Image GE 240))
> Seg_Grey_Image[locs]=255
> 
> Do not forget to also look at the minimum and maximum operator < and
> >, or the memory efficient variants <= and >= . They might give you
> more ideas to solve your problems.

And as long as you are paying all this money for the
self-improvement course, have a look at compile options
defint32 and strictarr. Those won't hurt you any, either. :-)

Cheers,

David
-- 
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Se****e ma de ni thui. ("Perhaps thou speakest truth.")
 




 6 Posts in Topic:
how to deal with problem:Loop limit expression too large for loo
Magic.Zhou@[EMAIL PROTECT  2008-04-04 05:08:00 
Re: how to deal with problem:Loop limit expression too large for
Allan Whiteford <allan  2008-04-04 13:24:05 
Re: how to deal with problem:Loop limit expression too large for
Magic.Zhou@[EMAIL PROTECT  2008-04-04 23:13:55 
Re: how to deal with problem:Loop limit expression too large for
armand.jongen@[EMAIL PROT  2008-04-05 01:24:51 
Re: how to deal with problem:Loop limit expression too large for
David Fanning <news@[E  2008-04-05 07:07:31 
Re: how to deal with problem:Loop limit expression too large for
Magic.Zhou@[EMAIL PROTECT  2008-04-06 05:19:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Wed Dec 3 20:48:34 CST 2008.