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

Home » Public Forums » archive » efficient comparing 1D and 3D arrays
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
efficient comparing 1D and 3D arrays [message #60687] Wed, 11 June 2008 03:28
Jelle is currently offline  Jelle
Messages: 19
Registered: May 2008
Junior Member
Hi All,

At the moment I am trying to find pixels that fall within a certain
value range for each pixel, as part of a recursive image exploration
routine.

Say I have the following data:

imgdata = fltarr(NB, NS, NL)
MinVals = fltarr(NB)
MaxVals = fltarr(NB)

Now I would like to efficiently find out
where( (imgdata GT MinVals) and (imgdata LT MaxVals) )

I have been pottering along trying to do this with the full arrays,
but the only way I can get an answer is by using many loops comparing
individual bands or pixels. There must be an easy memory-efficient way
to do this..?

Does anybody have some suggestions for me here?

Cheers,
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Best inverse of IDLanROI::ComputeMask
Next Topic: Re: How to add tie point information for ENVI in IDL?

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

Current Time: Wed Oct 08 18:07:01 PDT 2025

Total time taken to generate the page: 0.00395 seconds