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

Home » Public Forums » archive » Re: ENVI Classification Image to ROIs
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
Re: ENVI Classification Image to ROIs [message #56643] Thu, 08 November 2007 10:14
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
charliehemlock@gmail.com wrote:
> Hi,
>
> I'm looking for an easy way to take an ENVI Classification Image and
> take each class from it and export each as a separate ROI. (I'm not
> creating a classification from roi's - the opposite)
>
> I could use "band threshold from ROI" - but this is time consuming if
> you have several classes and images. It seems like there should be an
> easy way to do this...hopefully there's a simple solution out there
> that I'm just missing.
>
> I'm using envi 4.3
>
> Thanks!
>
> CH
>

If you want to do it once, you could convert your image to a vector and
then change the proper vectors to a ROI.

If you want to do it more often, you can open your image in IDL, check
for each unique value, select all the cells that have this value and
then convert this selection to ROI using OBJ_NEW('IDLanROI'), or simply
use the cells ID from this selection in your subsequent analyzes.

Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: string conversion & integer
Next Topic: for loop is killing me

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

Current Time: Wed Oct 08 19:12:30 PDT 2025

Total time taken to generate the page: 0.00829 seconds