我对 opencv 有点陌生。我正在使用 Java,我想知道如何应用 alpha = 0.2 的拉普拉斯滤波器,我的意思是,使用这个矩阵进行卷积:
0.1667 0.6667 0.1667
0.6667 -3.3333 0.6667
0.1667 0.6667 0.1667
我正在使用这段代码,但我不知道使用什么作为“d深度”和“ksize”:
Imgproc.Laplacian(b, b_lapl, d深度, ksize, 1, 0);
有没有什么快速的方法可以得到结果的绝对值?
最佳答案
ddepth – Desired depth of the destination image.
ksize – Aperture size used to compute the second-derivative filters. See getDerivKernels() for details. The size must be positive and odd.
来自手册:http://docs.opencv.org/modules/imgproc/doc/filtering.html#laplacian
关于java - OpenCV - 拉普拉斯滤波器中的参数 (Java),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22591022/