Re: ENVI Classification Image to ROIs [message #56643] |
Thu, 08 November 2007 10:14 |
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
|
|
|