【发布时间】:2012-05-03 07:58:16
【问题描述】:
如果有人可以分享代码
什么是 C# EmguCV 框架中 Image.setValue(...) 方法的 C++(OpenCV) 等效项。 emgucv 参考: http://www.emgu.com/wiki/files/2.3.0/document/Index.html
例如接下来如何用 C++ 编写代码:
private static Image<Gray, Byte> FilterPlate(Image<Gray, Byte> plate)
{
...
Image<Gray, Byte> thresh = plate.ThresholdBinaryInv(new Gray(120), new Gray(255));
using (Image<Gray, Byte> plateMask = new Image<Gray, byte>(plate.Size))
plateMask.SetValue(255.0);
...
thresh.SetValue(0, plateMask);
}
尤其是下一个 C++ 等价物:
thresh.SetValue(0, plateMask);
谢谢。
【问题讨论】: