>> stat=ImageStat.Stat(img)>>> stat.extrema[(0, 255)]>>> stat.mean[83.10838317871094]>>> stat.stddev[60.3189215880762_python 计算多帧图像标准差">
赞
踩
>>> from PIL import Image,ImageStat
>>> img = Image.open(".\\1_Anger\\1.jpg")
>>> stat=ImageStat.Stat(img)
>>> stat.extrema #最大值与最小值
[(0, 255)]
>>> stat.mean #均值
[83.10838317871094]
>>> stat.stddev #标准差
[60.318921588076215]
>>>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。