diff --git a/README.md b/README.md index 644fafe..7751689 100644 --- a/README.md +++ b/README.md @@ -1 +1,32 @@ -

图像去噪

\ No newline at end of file +#
图像去噪
+## 运行库 +cv2、matplotlib、numpy
+contraharmonic_mean_filter.py、adaptive_median_filter.py +## 高斯滤波 +利用高斯滤波处理高斯噪声。
+运行gaussian.py程序进行高斯滤波处理。
+如果需要修改处理文件,请修改gaussian.py文件中的照片路径。 +```c +image_gaussian = cv2.imread("file/circuitboard-gaussian.tif") +``` +程序效果展示如下。
+![高斯滤波](/effect_picture/1.高斯滤波.png#pic_center) +## 反谐波均值滤波 +利用反谐波均值滤波处理胡椒噪声或盐噪声。
+运行pepper_salt.py程序进行反谐波均值滤波处理。
+如果需要修改处理文件,请修改pepper_salt.py文件中的照片路径。 +```c +image_pepper = cv2.imread("file/circuitboard-pepper.tif", cv2.IMREAD_GRAYSCALE) +image_salt = cv2.imread("file/circuitboard-salt.tif", cv2.IMREAD_GRAYSCALE) +``` +程序效果展示如下。
+![反谐波均值滤波](/effect_picture/2.反谐波均值滤波.png#pic_center) +## 自适应中值滤波 +利用自适应中值滤波处理胡椒噪声或盐噪声。
+运行pepper_and_salt.py程序进行自适应中值滤波处理。
+如果需要修改处理文件,请修改pepper_and_salt.py文件中的照片路径。 +```c +image_saltandpep = cv2.imread("file/circuitboard-saltandpep.tif", cv2.IMREAD_GRAYSCALE) +``` +程序效果展示如下。
+![自适应中值滤波](/effect_picture/3.自适应中值滤波.png#pic_center) \ No newline at end of file diff --git a/effect_picture/1.高斯滤波.png b/effect_picture/1.高斯滤波.png new file mode 100644 index 0000000..35f366e Binary files /dev/null and b/effect_picture/1.高斯滤波.png differ diff --git a/effect_picture/2.反谐波均值滤波.png b/effect_picture/2.反谐波均值滤波.png new file mode 100644 index 0000000..914d5d6 Binary files /dev/null and b/effect_picture/2.反谐波均值滤波.png differ diff --git a/effect_picture/3.自适应中值滤波.png b/effect_picture/3.自适应中值滤波.png new file mode 100644 index 0000000..c9fc2f4 Binary files /dev/null and b/effect_picture/3.自适应中值滤波.png differ