Adding and Editing Colors
Colors are defined by a region, and they store the average RGB and HSI values contained within the region at the time of training. The Library may contain up to 100 distinct Colors, which are composed of the RGB/HSI values of the object being examined.
![Closed](../../Skins/Default/Stylesheets/Images/transparent.gif)
- From the Settings tab, select the Color Library to reference from the Color Library drop-down menu. By default, the first Color Library (MatchColorLibrary_1) is selected.
- Press the Train Color button to launch the MatchColor Training dialog.
- In the Train group box, select the type of region that will be used to define the Color: Region, Circle, Annulus, Polygon, Draw Freehand or Point.
- Press the Add New Color button and configure the region within the image so that it only includes the RGB values that you want to add or subtract.
- Either double-click the region or press the OK button in the Job Edit toolbar once you have configured the region.
- If desired, rename the Color to a name more specific to your application, especially if you will have multiple Colors. A Color can be renamed at any time by highlighting the Color and pressing the Rename button above the Color Library directory.
- Colors can be removed from the list by selecting the Color and pressing the Delete Model button.
![Closed](../../Skins/Default/Stylesheets/Images/transparent.gif)
Utilizing the Color Tolerance controls, you can determine how much of your object is being detected and adjust the Color Tolerance controls to increase or decrease the sensitivity of the tool by using the settings in the Color Tolerance group box of the MatchColor Training dialog.
Darker
Specifies the Darker Limit (0 to 1.0; default = 1.0). When the Color Space is set to RGB, the Darker limit expands the trained Color proportionally lower along a line from (0,0,0) to the trained color's RGB value. When the Color Space is set to HSI, the Darker limit expands the Intensity value of the trained Color lower.
Lighter
Specifies the Lighter Limit(1.0 to 10.0; default = 1.0). When the Color Space is set to RGB, the Lighter limit expands the trained Color proportionally higher along a line from (0,0,0) to the trained color's RGB value. When the Color Space is set to HSI, the Lighter limit expands the Intensity value of the trained Color higher.
![Closed](../../Skins/Default/Stylesheets/Images/transparent.gif)
- From the Settings tab, select the Color Library to reference from the Color Library drop-down menu.
- Press the Train Color button to launch the ExtractColor Training dialog.
- Select the Color Model to modify and utilize the controls in the dialog to edit the Color Model.