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

Home » Public Forums » archive » Multi-band sampling strategy
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Multi-band sampling strategy [message #72184] Tue, 17 August 2010 20:10 Go to previous message
JessW is currently offline  JessW
Messages: 5
Registered: August 2010
Junior Member
Hi all,

I'm using an IDL script in ENVI to retrieve the values of a multiband
image at a user-specified number of pixels. The script works as
intended, but is quite slow; sampling an 8-band image at ~ 38,000
pixel locations takes
52.35 minutes. The issue is the following loop:

FOR i= 0L, nSamplePix - 1 DO BEGIN
pixValues[i,*] = ENVI_GET_SLICE(fid=fid,line=(index[1,i]-1),$
pos=bandsSelected,xs=(index[0,i]-1), xe=(index[0,i]-1))
ENDFOR

If anyone can suggest an alternate, faster sampling strategy--
preferably one that doesn't include the purchase of a new, faster
computer--I would be extremely grateful.

Thanks,

Jess
[Message index]
 
Read Message
Read Message
Previous Topic: Re: widget_table crash IDL8.0
Next Topic: IDLDE 8.0 Command Line Errors

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

Current Time: Fri Oct 10 11:38:42 PDT 2025

Total time taken to generate the page: 1.20340 seconds