有一个名为findNonZero的函数用于查找Opencv中非零像素的位置。我想知道Emgucv是否也有类似的情况?
我恐怕似乎没有一个,但你总是可以直接使用CvInvoke
调用OpenCV函数。
调用上述函数的语法将是
CvInvoke.findNonZero();// pass the suitable parameters in the function suitably
这篇文章可以了解更多。
//
// 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上调用它。outputImage FindNonZero (src);