Why does RMS intensity emphasize bright pixels?
Root mean square squares intensities before taking the mean and its square root, giving larger readings greater influence.
Pixel experiment and interpretation
Compute both metrics for readings of 0 and 100. Keep the chosen exposure metric consistent across batches.
from PIL import Image, ImageStat
def row(values):
return Image.frombytes('L', (len(values), 1), bytes(values))
s=ImageStat.Stat(row([0,100]))
(s.mean[0],round(s.rms[0],2))Result (50.0, 70.71)
中文
为何 RMS 亮度比简单平均值更偏向亮点?
均方根先平方像素值,再取其平均的平方根,因此大数值的贡献更强。
像素实验与适用边界
对 0 和 100 两个样本同时算均值与 RMS。用某一指标约束曝光时,应在不同批次坚持同一指标。
from PIL import Image, ImageStat
def row(values):
return Image.frombytes('L', (len(values), 1), bytes(values))
s=ImageStat.Stat(row([0,100]))
(s.mean[0],round(s.rms[0],2))结果 (50.0, 70.71)