【发布时间】:2014-08-05 17:50:46
【问题描述】:
Opencv中有一个函数叫findNonZero,用来查找非零像素的位置。我想知道 Emgucv 中是否有类似的东西?
【问题讨论】:
Opencv中有一个函数叫findNonZero,用来查找非零像素的位置。我想知道 Emgucv 中是否有类似的东西?
【问题讨论】:
//
// 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); 上调用它
【讨论】:
恐怕似乎没有,但您始终可以使用 CvInvoke 直接调用 OpenCV 函数。
调用上述函数的语法是
CvInvoke.findNonZero();// pass the suitable parameters in the function suitably
此this post 以了解更多信息。
【讨论】: