【问题标题】:Convert type 'Emgu.CV.Mat' to 'Emgu.CV.Image<Emgu.CV.Structure.Bgr, byte>'将类型“Emgu.CV.Mat”转换为“Emgu.CV.Image<Emgu.CV.Structure.Bgr, byte>”
【发布时间】:2021-01-20 23:24:48
【问题描述】:

我试图像以前一样使用 Image = new Image&lt;Bgr, byte&gt;(mat.Bitmap); 在 EmguCV 中将 Emgu.CV.Mat 转换为 Emgu.CV.Image&lt;Emgu.CV.Structure.Bgr, byte&gt;,但我发现它已在当前版本 4.5.1.4349 中被删除。

目前的替代方案是什么?

【问题讨论】:

    标签: c# emgucv


    【解决方案1】:

    我找到了另一种方法,它似乎在以前的版本中并且仍然有效。

    Image = mat.ToImage<Bgr, Byte>();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-02-09
      • 2020-07-03
      • 1970-01-01
      • 1970-01-01
      • 2016-12-06
      • 1970-01-01
      • 2019-11-21
      • 2014-02-20
      相关资源
      最近更新 更多