ApplicationInImageProcessing
ApplicationInImageProcessing copied to clipboard
scharr滤波器
scharr滤波器
使用Scharr滤波器运算符计算x或y方向的图像差分
函数
Scharr(src, ddepth, dx, dy, dst=None, scale=None, delta=None, borderType=None) 参数说明:
-
src: InputArray 类型的src,为输入图像
-
dst : 输出图像大小,与输入图像通道数相同
-
ddepth: 图像输出深度 -- 若src.depth() = CV_8U, 取ddepth =-1/CV_16S/CV_32F/CV_64F -- 若src.depth() = CV_16U/CV_16S, 取ddepth =-1/CV_32F/CV_64F -- 若src.depth() = CV_32F, 取ddepth =-1/CV_32F/CV_64F -- 若src.depth() = CV_64F, 取ddepth = -1/CV_64F -- 若等于 -1 得到np.uint8 类型
-
dx: x方向上的差分阶数。
-
dy: y方向上的差分阶数。
-
scale: 计算导数值时可选的缩放因子,默认值是1,表示默认情况下是没有应用缩放的。
-
delta: 表示在结果存入目标图(第二个参数dst)之前可选的delta值,有默认值0
-
borderType: 边界模式,默认值为BORDER_DEFAULT。