Emgucv中是否有找到非零像素的函数?

问题描述 投票:0回答:2

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

opencv pixel emgucv
2个回答
0
投票

恐怕似乎没有一个,但是您总是可以使用CvInvoke直接调用OpenCV函数。

调用上述功能的语法为

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

this post了解更多信息。


0
投票
    //
    // 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)上调用它;

© www.soinside.com 2019 - 2024. All rights reserved.