我试图使用Imagemagick的getImageChannelStatistics
函数来计算图像的平均亮度。如果达到给定阈值,我将使用modulateImage
降低亮度。php imagemagick统计使用情况
array Imagick::getImageChannelStatistics (void)
第一问题: 每个通道的返回平均值是大于255,虽然颜色深度为8 如何解释这些值?
阵列([平均] => 27510.293108724 [最小值] => 0 [最大值] => 65535 [standardDeviation] => 23761.909802897 [深度] => 8)
阵列([平均] => 22654.046931424 [阵列([平均值] => 21137.418988715 [最小值] => 0 [最大值] => 65535 [标准偏差] => 65535 [标准偏差] => 21085.309916751 [深度] => 8)
[ ] => 20369.810455127 [depth] => 8)
第二个问题: 什么是平均值和d图像的亮度?
bool Imagick::modulateImage (float $brightness , float $saturation , float $hue)
在此先感谢!