Re: Designating values to different ROIs in a single ROI file [message #68460] |
Thu, 22 October 2009 06:11 |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Oct 22, 4:02 am, David Hsu <wwwdavi...@gmail.com> wrote:
> I found out that ENVI_ROI_TO_IMAGE_DOIT can do exactly what I need.
> But the problem is that the CLASS_VALUES variable seems only accept
> values up to 255, which is a data type of BYTE. But ENVI Help tells me
> it is an array of 'LONG INTEGERS'. I need at least INTEGER to store my
> population data.
>
> Has any idea about this problem?
That is not a problem, if you have less than 256 ROIs. Make an image
where the pixel value is the index of the ROI, then make a new one of
the type you need, where you replace the indexes by the populations of
the corresponding ROIs, which you can do with where or histogram.
|
|
|
Re: Designating values to different ROIs in a single ROI file [message #68461 is a reply to message #68460] |
Wed, 21 October 2009 23:02  |
David Hsu
Messages: 2 Registered: October 2009
|
Junior Member |
|
|
I found out that ENVI_ROI_TO_IMAGE_DOIT can do exactly what I need.
But the problem is that the CLASS_VALUES variable seems only accept
values up to 255, which is a data type of BYTE. But ENVI Help tells me
it is an array of 'LONG INTEGERS'. I need at least INTEGER to store my
population data.
Has any idea about this problem?
|
|
|