The color map of spectral feature visualization can be selected using the combo box.



We may choose from several predefined color maps or create a custom color map definition by selecting New. For some color maps, it may be useful to set the background color to avoid confusion, we may do that using the Background color swatch. In this example, we set the gray level color map and make the background distinct, this allows us to spot fine patterns in the foreground more easily.



TIP: You may adjust transparency of the background color in the color dialog using the Alpha channel field: 255 denotes an opaque layer and 0 a fully transparent layer.


To create a custom color map, select New in the Color map combo box. In the dialog, you can define the color map steps and colors interactively and name the color map.



When right-clicking on the color map widget, a context menu provides number of additional options:



The Save to settings command will save the color map to the mira.ini file, it will then be possible to use the color map again. The mira.ini file will contain our new color map definition as a simple text string.


[colormap]

gold="gold;0 0,0,0;0.625 255,240,24;0.829 255,7,52;1 255,255,255;"


The content in double quotes specifies the complete color map, consisting of a list separating fields by semicolon. First the color map name is listed, then each of the color map steps is defined, a step contains a 0.0 to 1.0 relative position followed by RGB definition of the color.


Using the Copy to clipboard command will copy the string representation of the color map, this way it can be shared with others. If they would copy the string representation to their clipboard, and then select Paste, they will get the same color map in perClass Mira.