Color
The In-Sight Color tools are used to identify and match objects based on color data. The Color tools include the following functions:
- ExtractColor: Determines the number of pixels present in the region of interest (ROI) that match the selected trained Color Models in the TrainExtractColor color Library.
- MatchColor: Determines which colors present in the ROI match the trained Colors in the TrainMatchColor color Library.
- TrainExtractColor: Builds a color Library for use with the ExtractColor function.
- TrainMatchColor: Builds a color Library for use with the MatchColor function.
Note:
- You must be connected to a color In-Sight vision system or emulator to enable these Vision Tools.
- The ExtractColor function must reference a TrainExtractColor ExtractColorLib data structure, and the MatchColor function must reference a TrainMatchColor a MatchColorLib data structure. Otherwise, the functions will return #ERR.