|Mac & Win
Calculate statistics for an image.
Returns JSON or error.
DescriptionCalculate statistics for an image.
ImageStatistics computes common statistics (currently maximum, minimum, mean and standard deviation) for the available image channels. The per-channel values are returned in an ImageStatistics structure as JSON. Statistics are normalized to the range 0.0 to 1.0. Multiply values by 65535 to obtain the statistics in quantum units. Statistics for non-existent channels are set to zero.
If all colors have a minimum of zero, you have some black pixels. Same if red, green and blue maximum are all 1, you have some white pixels.
Queries statistics for an image:
- Version 14.1
- Added GMImage.Statistics function.
This function checks for a license.
Created 22nd January 2024, last changed 25th January 2024