Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
统计数据对象 类 Statistics 中的求均值函数(statistics.mean())返回值为 int 型,请
问有没有类似的函数返回值为 浮点型的?(本人现在想精确计算一段区域的灰度均
值,希望数值精确到小数点)
目前只能返回int的平均数。
你可以考虑自己改一下代码。