OpenCV filter2D函数简介 OpenCV filter2D将图像与内核进行卷积,将任意线性滤波器应用于图像。支持就地操作。当孔径部分位于图像之外时,该函数根据指定的边界模式插值异常像素值。 该函数实际上计算相关性,而不是卷积: filter2D函数的原型如下: void cv::filter2D(InputArray src, OutputArray dst, int ddepth, InputArray kernel, Point anchor = Point(-1,-1), double delta = 0, int borderType = BORDER_DEFAULT ) 参数: src 输入图像 dst 输出图像,与 src 大小相同、通道数相同 ddepth 目标图像的所需深度 kernel 卷积核(或者更确切地说是相关核),单通道浮点矩阵;如果要将不同的内核应用于 不同的通道,请使用 split 将图像分割为单独的颜色平面并单独处理它们。 anchor 内核的锚点,指示内核中过滤点的相对位置;锚应该位于内核内;默认值(-1,-1) 表示锚点位于内核中心。...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Mat
Contact Mat, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack