Match Colors in an Image to a Template
Main Tab
- In the Step Name control, enter a descriptive name for the step.
- Verify that the Reposition Region of Interest option is enabled if you want to link the region of interest specified in this step to a previously defined coordinate system.
Link the region of interest to a coordinate system if the position of the object under inspection changes from image to image, and you need to adjust the position of the region of interest to match the new location of the object.
Template Tab
- Create or select the template you want to use for comparison.
- To create a new template, complete the following steps:
- Click Create Template.
- Select an ROI and click OK.
- Enter a File Name for the template and click OK.
- To use an existing template, complete the following steps:
- Click Load from File.
- Browse to the appropriate template image and click OK.
By default, the center of the template is used as the focal point of the template. You can change the location of the focal point to any position in the template. Change the focal point of the template by dragging the red pointer in the template image or adjusting the Match Offset values.
- To create a new template, complete the following steps:
- Modify the Ignore Black and White and Sat. Threshold parameters as necessary.
Settings Tab
- Set the Minimum Match Score.
- Click OK to add the step to the script and exit the Parameter window.