OpenCV滤波函数实例
Blur()函数:
https://docs.opencv.org/3.2.0/d4/d86/group__imgproc__filter.html#ga8c45db9afe636703801b0b2e440fce37
boxFilter与blur功能相当
参数:
Src:输入图像,不限通道数
Dst:输出图像,格式与原图像一致
Ksize:滤波内核大小
Anchor:锚点,默认为Point(-1,-1),位于内核中心
border Type:像素外推的边框模式
取值方式见:
https://docs.opencv.org/3.2.0/d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5
2、高斯滤波:
cv::GaussianBlur()
Blurs an image using a Gaussian filter.
The function convolves the source image with the specified Gaussian kernel.In - place filtering is supported.
使用高斯模糊内核对图像进行卷积操作
参考:
https://docs.opencv.org/3.2.0/d4/d86/group__imgproc__filter.html#gaabe8c836e97159a9193fb0b11ac52cf1
参数:
Src:输入的任意通道的图像
Dst:处理后的输出图像,格式与原图像相同
Ksize:高斯内核的大小,k.width与k.height必须为正奇数
sigmaX:高斯内核在x