gpt4 book ai didi

java - OpenCV - 拉普拉斯滤波器中的参数 (Java)

转载 作者:太空宇宙 更新时间:2023-11-04 15:00:50 26 4
gpt4 key购买 nike

我对 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com