有一个名为findNonZero的函数,用于查找Opencv中非零像素的位置。我想知道Emgucv中是否有类似的东西?
恐怕似乎没有一个,但是您总是可以使用CvInvoke
直接调用OpenCV函数。
调用上述功能的语法为
CvInvoke.findNonZero();// pass the suitable parameters in the function suitably
此this post了解更多信息。
//
// 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)上调用它;