【问题标题】:Is there a function in Emgucv to find non-zero pixels?Emgucv 中是否有查找非零像素的功能?
【发布时间】:2014-08-05 17:50:46
【问题描述】:

Opencv中有一个函数叫findNonZero,用来查找非零像素的位置。我想知道 Emgucv 中是否有类似的东西?

【问题讨论】:

    标签: opencv pixel emgucv


    【解决方案1】:
        //
        // Summary:
        //     Find the location of the non-zero pixel
        //
        // Parameters:
        //   src:
        //     The source array
        //
        //   idx:
        //     The output array where the location of the pixels are sorted
        public static void FindNonZero(IInputArray src, IOutputArray idx);
    

    在 CvInvoke.FindNonZero(src, outputImage); 上调用它

    【讨论】:

      【解决方案2】:

      恐怕似乎没有,但您始终可以使用 CvInvoke 直接调用 OpenCV 函数。

      调用上述函数的语法是

      CvInvoke.findNonZero();// pass the suitable parameters in the function suitably
      

      this post 以了解更多信息。

      【讨论】:

      • 问题是Emgucv中没有findNonZero或cvfindNonZero。这是错误:“Emgu.CV.CvInvoke”不包含“findNonZero”的定义!有什么解决办法吗?
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-04
      • 2021-12-20
      • 1970-01-01
      • 2014-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多