ImgEvaluateChromaticity |
Top Previous Next |
Prototype
intChormaticity:=ImgEvaluateChromaticityFocus(intImageHandle)
Description
Evaluates if the content of an image is black and white, grayscale or color.
Parameters
intImageHandle: integer value corresponding to the image handle.
Returned value
Integer value representing the image chromaticity: 0 = empty, 1 = bitonal, 2 = grayscale, 3 = color.
Notes
Don't confuse chromaticity with bits per pixel! A bitonal image can be acquired also at 24 bits per pixel (true-color), but still its chromaticity its bitonal.
Example
// Find the focus level Chromaticity:=ImgEvaluateChromatcitiy(_CurrentImage);
// Log a message ApplicationLog('Image chromaticity is '+IntToStr(Chromaticity)) |