X
4113

Adding Custom Colors to the ROI Tool


The ENVI ROI Tool allows users to chose from 50 pre-defined colors during ROI creation. However, for some users this choice may not be enough or they would prefer to use their own custom colors. Adding these colors can be easily done using the steps outlined below.
  • Open 'colors50.txt ' which, assuming default installation, is located in the following directory:
    C:\Program Files\ITT\IDL\IDLxx\products\envixx\menu  --------> ENVI 4.X
    C:\Program Files\Exelis\ENVI50\classic\menu  -------- > ENVI 5.0
       
    This is the ENVI color menu for the ROI tool. Add the RGB values of the custom colors to the end of this file. Color names can be added as well. Here is an example of the syntax for 3 colors:

    206 0 255 Goofy Grape
    0 232 255 Swimming Pool
    133 255 0 Slime Green

  • Once the last color name has been entered hit the 'Enter' key to start a new line. ENVI needs this carriage return to correctly accept the contents of the file.

  • Save the file. For ENVI to recognize the changes it is necessary to re-start ENVI. The fastest way is to type in the following at the command prompt:

    ENVI> .f             ( This is a shorthand for .FULL_RESET_SESSION which is a full reset of the ENVI/IDL session.)

    Then:
    IDL> envi

    ...to restart the ENVI session. ENVI Runtime users will need to manually close and restart ENVI. When you go to chose your new colors you should see them in the second list; Colors 21-40