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

Home » Public Forums » archive » ENVI ROI colors
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
ENVI ROI colors [message #64525] Wed, 07 January 2009 03:03
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
With

ENVI_GET_ROI_INFORMATION, ROI_IDS, ROI_COLORS=ROI_COLORS

I can determine the colors used for the defined ROIs. The ENVI Help says:

ROI_COLORS (optional)
Use this keyword to specify a named variable that contains the RGB color
value for each ROI ID. ROI_COLORS is a byte array of size [3, #ROI IDs].

Great, so ROI_COLORS is an array of RGB values. But I want now to create
new ROIs using the same colors, so I use

ROI_ID = ENVI_CREATE_ROI(COLOR=COLOR, etc.)

Now the ENVI Help says

COLOR (optional)
Use this keyword to specify the graphics color index of the ROI. The
default value is 2.

and I'm lost. How do I get the index of ROI_COLORS to pass to
ENVI_CREATE_ROI()?

Thanks,

Mort
[Message index]
 
Read Message
Previous Topic: Re: Help needed to create image frames from dataset (mpeg movie)
Next Topic: Re: How to take proper tick labels with 'axis' command?

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

Current Time: Wed Oct 08 18:38:36 PDT 2025

Total time taken to generate the page: 0.00407 seconds