【问题标题】:While want to make an instance of SIFTDetector: Get an Attempted to read or write protected memory exception Error虽然想做一个SIFTDetector的实例:Get an Attempted to read or write protected memory exception Error
【发布时间】:2012-11-08 19:09:01
【问题描述】:

我正在尝试使用 sift 算法通过 opencv 库在 c# 中制作关键点和描述符。

     fileAddress = dlg.FileName;
     cap = new Emgu.CV.Capture(dlg.FileName);
     cap.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_POS_FRAMES, 3945);
     imGray = cap.QueryGrayFrame();
     Emgu.CV.Features2D.SIFTDetector siftDet = new Emgu.CV.Features2D.SIFTDetector();
     siftDet.DetectKeyPoints(imGray);
     MessageBox.Show("test SIFT");

但是当它通过 Emgu.CV.Features2D.SIFTDetector siftDet = new Emgu.CV.Features2D.SIFTDetector(); 我面临错误:

查看详情如下:

我该如何解决这个异常?

【问题讨论】:

    标签: c# .net c#-4.0 opencv emgucv


    【解决方案1】:

    我使用的 openCv 是 2.1 版,然后我将 opencv*.* 和 *.dll 文件升级到了 2.4 版。问题解决了。

    我找不到任何解释,如果有人能给我一个直观的答案,那就太棒了。

    现在如果您在使用 SIFT 时遇到此类问题,请尝试最新版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-05-08
      • 1970-01-01
      • 2016-01-08
      • 2022-12-26
      • 2013-06-16
      • 2023-02-09
      • 2023-01-21
      • 1970-01-01
      相关资源
      最近更新 更多