低通滤波: 通常使用来去噪
常见滤波类型
均值滤波
高斯滤波 (权重与距离相关)
中值滤波
顾名思义取中值
具体代码例子
高斯的模糊/去噪效果
1 | # Read in the image |
与高通滤波配合
1 | # Filter the orginal and blurred grayscale images using filter2D |
1 | retval, binary_image = cv2.threshold(filtered_blurred, 50, 255, cv2.THRESH_BINARY) |
1 | filtered_blurred = cv2.filter2D(gray_blur, -1, laplacian) |