0
我刚刚从OpenCV切换到EmguCV,因为C++应用程序无法直接托管在我的目标云平台上 - 现在我的直方图代码在对转换进行必要更改后将不起作用。EmguCV:创建图像直方图 - 错误
下面是我所做的一个片段:
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。由于