Prototype
strColor:=ImgFindDominantColor(intImageHandle, intMinThreshold)
Description
It finds the dominant color in the color image.
Parameters
intImageHandle: integer value corresponding to the image handle.
intMinThreshold: integer value that specifies the minimal threshold for a color component to be considered dominant.
Returned value
String value with the dominant color name. Can be: "RED", "GREEN", "BLUE", "MAGENTA", "CYAN", "YELLOW", "NONE".
Notes
None.
Example
//Find dominant color
color:=ImgFindDominantColor(_CurrentImage, 20);
//It shows a message
ApplicationLog(_CurrentAgent,'Dominant color is: '+ Color);