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

Home » Public Forums » archive » Re: Designating values to different ROIs in a single ROI file
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: Designating values to different ROIs in a single ROI file [message #68460] Thu, 22 October 2009 06:11
penteado is currently offline  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 Go to previous message
David Hsu is currently offline  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?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Designating values to different ROIs in a single ROI file
Next Topic: Fast Browsing Tips

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

Current Time: Wed Oct 08 13:47:18 PDT 2025

Total time taken to generate the page: 0.00449 seconds