我正在使用AForge.net,我想在文本框中显示标准偏差的值。下面的代码是不工作:为什么ImageStatistics.Gray为空?
AForge.Imaging.ImageStatistics stat = new AForge.Imaging.ImageStatistics(btm_1);
AForge.Math.Histogram gray = stat.Gray;
this.textB_1.Text = gray.StdDev.ToString();
它失败,出现以下错误:
Object reference not set to an instance of an object.
两个gray
和stat.Gray
为空。
这不是标准*分*。这是标准*偏差*。 – 2011-04-10 16:07:25
对不起,我的错误 – kukula 2011-04-10 20:57:55