Image_Filter
Image_Filter copied to clipboard
Commonly used image filters. :earth_americas: 包罗常见的图像滤波器。
Image Filter

Update 13-05-2017: It's an image filter entirely written by myself.
MIT license. Contributions welcome.
Overview
Image-Filter/ root directory
|
+-- src/ code files that implement the function
|
+-- Image_Origin/ images which be chosen to filtering
|
+-- Image_Generated/ images which be generated after filtering
|
+-- README.md manual of project
|
+-- LICENSE.md license of project
|
+-- requirements.txt environment required for this program
There are 11 filters can choose:
- [x] 1. Naive Filter 原图滤波(相当于无变化)
- [x] 2. Sharpness_Center Filter 中心锐化 滤波
- [x] 3. Sharpness_Edge Filter 边缘锐化 滤波
- [x] 4. Edge_Detection_360° Filter 360°边缘检测 滤波
- [x] 5. Edge_Detection_45° Filter 45°边缘检测 滤波
- [x] 6. Embossing_45° Filter 45°浮雕 滤波
- [x] 7. Embossing_Asymmetric Filter 非对称浮雕 滤波
- [x] 8. Averaging_Blur Filter 均值模糊 滤波
- [x] 9. Completed_Blur Filter 完全模糊 滤波
- [x] 10. Motion_Blur Filter 运动模糊 滤波
- [x] 11. Gaussian_Blur Filter 高斯模糊 滤波
Choose the filter you need, and the filtered image will generated at folder Image_Generated/.
选择你需要的滤波器,卷积结果会自动保存在 Image_Generated/ 文件夹。
Usage
-
Run
python src/main.pyto generated the image you need. Need to wait patiently for a while to get results. -
In
src/main.py, you can also design a filter yourself to experiment. -
运行
python src / main.py来生成你需要的图像,卷积结果需要耐心等待一会儿。 -
在
src/main.py中,自己还可以设计一个滤波器来做实验以加深对滤波器的了解。
Requirements
-
Python
-
OpenCV
Demo
-
Naive Filter 原图滤波(相当于无变化)

-
Sharpness_Center Filter 中心锐化 滤波

-
Sharpness_Edge Filter 边缘锐化 滤波

-
Edge_Detection_360° Filter 360°边缘检测 滤波

-
Edge_Detection_45° Filter 45°边缘检测 滤波

-
Embossing_45° Filter 45°浮雕 滤波

-
Embossing_Asymmetric Filter 非对称浮雕 滤波

-
Averaging_Blur Filter 均值模糊 滤波

-
Completed_Blur Filter 完全模糊 滤波

-
Motion_Blur Filter 运动模糊 滤波

-
Gaussian_Blur Filter 高斯模糊 滤波
