ImgFindDominantColor

Top  Previous  Next

Prototype

 

strColor:=ImgFindDominantColor(intImageHandle, intMinThreshold)

 

Description

 

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 the dominant color

color:=ImgFindDominantColor(_CurrentImage, 20);

 

// Log a message 

ApplicationLog('Dominant color is: '+ Color);