【发布时间】:2014-11-04 23:30:13
【问题描述】:
我刚刚从 OpenCV 切换到 EmguCV,因为 C++ 应用程序不能直接托管在我的目标云平台上——现在我的直方图代码在对转换进行必要的更改后将无法工作。
这里是我所做的一个sn-p:
Image<Gray, Byte> img_gray = new Image<Gray, byte>(frame1_hist.Rows, frame1_hist.Cols);
frame1_hist.CopyTo(img_gray, null);
DenseHistogram hist = new DenseHistogram(256, new RangeF(0, 256));
hist.Calculate(new Image<Gray, Byte>[] { img_gray }, true, null);
“System.NullReferenceException”类型的未处理异常 发生在 Emgu.CV.dll 中
如果您能告诉我如何解决此问题,我将不胜感激。另外,如何在操作后从“hist”中读取处理后的图像。我正在使用 EmguCv 3.0.0。谢谢
【问题讨论】: