本文介绍了openCV中的高斯拉普拉斯算子,如何找到零交叉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
openCV中有拉普拉斯函数,可直接计算双导数.但这并不意味着我会取得优势吗?因为在输出中有许多负值.我经过这个链接,意识到在那之后我还必须找到零交叉点.我不知道如何找到零交叉.有人可以帮我吗?
There is Laplacian function in openCV which directly calculate the double derivative. But this doesn't mean I will get the edges right? Because in the output there are many negative values.I go through this link and realized that after that also I had to find zero-crossings. I don't get how to find zero crossings. Can somebody help me ?
推荐答案
当以下情况发生零交叉
- 值等于0,或
- 两个相邻值的符号相反
如果您有类似的东西
Laplacian(src, dst, CV_16S);
您只需要扫描dst
查找这两种情况
You just need to scan dst
looking for those two cases
这篇关于openCV中的高斯拉普拉斯算子,如何找到零交叉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!