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

Home » Public Forums » archive » routine in ENVI to pass from EVF to ROI????
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: routine in ENVI to pass from EVF to ROI???? [message #49614 is a reply to message #49571] Sun, 06 August 2006 23:45 Go to previous messageGo to previous message
txominhermos is currently offline  txominhermos
Messages: 25
Registered: October 2005
Junior Member
Thanks for your reply David,
but I dont know how to use ARRAY_INDICES with an image load via
ENVI_OPEN_FILE. As you know the arguments requieres are Array and
Index, but I do not have the array in memory (because it is too big).

I have got the indices from:

FOR j=0,nb-1 DO BEGIN
roi_data = ENVI_GET_ROI_DATA( roi_id, fid=fid, pos = [j])
ENVI_GET_ROI_INFORMATION, roi_id, ns=ns, nl=nl
roi_addresses = ENVI_GET_ROI(roi_id) ; Get the
"position" of the pixels in the ROI
ENDFOR

So, the main problem -in this moment- is how to transform pixel
addresses into pixel coordinates with an image load via ENVI_OPEN_FILE
and without memory to store that image.




-txomin




David Streutker ha escrito:

> Once you have the vector of roi_addresses, you can use ARRAY_INDICES to
> convert the addresses to 2-dimensional coordinates. Then find the MIN
> and MAX of the x and y coordinates.
>
> If you have read the original file already, just use
> ENVI_WRITE_ENVI_FILE, Data[xMin:xMax,yMin:yMax] ...
>
> If you don't have enough memory to read in the original file, I *think*
> you can use MOSAIC_DOIT to clip the original. MOSAIC_DOIT is meant for
> use with multiple files, but I believe it will work with a single one,
> and you can use the x0 and y0 keywords to effectively subset the image.
>
> -David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: iPlot and applications
Next Topic: Programmatically subset one image using ENVI routines.

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

Current Time: Sat Oct 11 14:12:45 PDT 2025

Total time taken to generate the page: 0.72500 seconds