使用 OpenCV 函数高斯模糊对图像进行模糊处理
在此程序中,将使用 OpenCV 函数高斯模糊对图像进行模糊处理。高斯模糊是使用高斯函数对图像进行模糊处理的过程。它在图形软件中广泛用于去除图像噪音并减少细节。
算法
Step 1: Import cv2. Step 2: Read the original image. Step 3: Apply gaussian blur function. Pass the image and the kernel size as parameter. Step 4: Display the image.
原图

示例代码
import cv2
image = cv2.imread("testimage.jpg")
Gaussian = cv2.GaussianBlur(image, (7,7), 0)
cv2.imshow("Gaussian Blur", Gaussian)输出
高斯模糊:

广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 语言编程
C++
C#
MongoDB
MySQL
Javascript
PHP