Discussion:
ENVI ROI colors
(too old to reply)
mort canty
2009-01-07 11:03:57 UTC
Permalink
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
David Fanning
2009-01-07 13:10:24 UTC
Permalink
Post by mort canty
With
ENVI_GET_ROI_INFORMATION, ROI_IDS, ROI_COLORS=ROI_COLORS
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()?
This is all explained in Catch-22 by Joseph Heller:

http://tinyurl.com/84m7x7

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
mort canty
2009-01-07 13:22:37 UTC
Permalink
Post by David Fanning
Post by mort canty
and I'm lost. How do I get the index of ROI_COLORS to pass to
ENVI_CREATE_ROI()?
http://tinyurl.com/84m7x7
Cheers,
David
Thanks, Yosarian. I'll link it to my online help :-)

Loading...