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 #49634 is a reply to message #49571] Fri, 04 August 2006 08:50 Go to previous messageGo to previous message
David Streutker is currently offline  David Streutker
Messages: 34
Registered: June 2005
Member
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: Sun Oct 12 02:28:54 PDT 2025

Total time taken to generate the page: 0.32491 seconds