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

Home » Public Forums » archive » Re: ENVI ROI colors
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: ENVI ROI colors [message #64522] Wed, 07 January 2009 05:10 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mort canty writes:

> 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()?

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.")
Re: ENVI ROI colors [message #64619 is a reply to message #64522] Wed, 07 January 2009 05:22 Go to previous message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
David Fanning schrieb:

>> 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

Thanks, Yosarian. I'll link it to my online help :-)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How to take proper tick labels with 'axis' command?
Next Topic: Re: creating dynamic array

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

Current Time: Wed Oct 08 15:17:47 PDT 2025

Total time taken to generate the page: 0.00619 seconds