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

Home » Public Forums » archive » Re: Objects in ENVI ROI files
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: Objects in ENVI ROI files [message #48833 is a reply to message #48822] Mon, 22 May 2006 09:56 Go to previous message
David Streutker is currently offline  David Streutker
Messages: 34
Registered: June 2005
Member
I don't have a huge amount of experience writing ROI-related code, but
here's how I would go about it. (I'm assuming that you have a ENVI
license as well, as many of these functions are ENVI-only.)

1. If necessary, use ENVI_RESTORE_ROIS to open an ROI file.
2. Use ENVI_GET_ROI_IDS to get the ID of the ROI you're interested in.
3. Use ENVI_GET_ROI to get the indices associated with your ROI.

I'm not sure what your final goal is - this may be all you need. You
can use ARRAY_INDICES to convert the 1-D ROI indices to 2-D image
coordinates and ENVI_CONVERT_FILE_COORDINATES to get the geographic
coordinates.

If you need a true polygon boundary object, you can use QHULL to find
the boundary points (note that this creates a convex hull, which may
not be optimal, depending on the shape of the ROI). You can then
create an IDLgrPolygon or IDLanROI object, if that's what you need.

Hope that at least points you in the right direction. Much of it is
covered in the *ENVI* help files.

-David
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Using WIDGET_ACTIVEX to create a Socket server
Next Topic: Symbols Plotting - Psym

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

Current Time: Fri Oct 10 16:15:01 PDT 2025

Total time taken to generate the page: 1.44251 seconds