Skip to content

Latest commit

 

History

History
95 lines (65 loc) · 4.52 KB

README.md

File metadata and controls

95 lines (65 loc) · 4.52 KB

Image Filter Travis Language License AD

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:

  • 1. Naive Filter           原图滤波(相当于无变化)
  • 2. Sharpness_Center Filter      中心锐化 滤波
  • 3. Sharpness_Edge Filter      边缘锐化 滤波
  • 4. Edge_Detection_360° Filter    360°边缘检测 滤波
  • 5. Edge_Detection_45° Filter     45°边缘检测 滤波
  • 6. Embossing_45° Filter      45°浮雕 滤波
  • 7. Embossing_Asymmetric Filter   非对称浮雕 滤波
  • 8. Averaging_Blur Filter        均值模糊 滤波
  • 9. Completed_Blur Filter       完全模糊 滤波
  • 10. Motion_Blur Filter         运动模糊 滤波
  • 11. Gaussian_Blur Filter       高斯模糊 滤波

Choose the filter you need, and the filtered image will generated at folder Image_Generated/.
选择你需要的滤波器,卷积结果会自动保存在 Image_Generated/ 文件夹。

Usage

  1. Run python src/main.py to generated the image you need. Need to wait patiently for a while to get results.
  2. In src/main.py, you can also design a filter yourself to experiment.

  1. 运行 python src / main.py 来生成你需要的图像,卷积结果需要耐心等待一会儿。
  2. src/main.py 中,自己还可以设计一个滤波器来做实验以加深对滤波器的了解。

Requirements

  • Python

  • OpenCV

Demo

  1. Naive Filter    原图滤波(相当于无变化)
    Naive

  2. Sharpness_Center Filter    中心锐化 滤波
    Sharpness_Center

  3. Sharpness_Edge Filter    边缘锐化 滤波
    Sharpness_Edge

  4. Edge_Detection_360° Filter    360°边缘检测 滤波
    Edge_Detection_360_degree

  5. Edge_Detection_45° Filter    45°边缘检测 滤波
    Edge_Detection_45_degree

  6. Embossing_45° Filter    45°浮雕 滤波
    Embossing_45_degree

  7. Embossing_Asymmetric Filter    非对称浮雕 滤波
    Embossing_Asymmetric

  8. Averaging_Blur Filter    均值模糊 滤波
    Averaging_Blur

  9. Completed_Blur Filter    完全模糊 滤波
    Completed_Blur

  10. Motion_Blur Filter    运动模糊 滤波
    Motion_Blur

  11. Gaussian_Blur Filter    高斯模糊 滤波
    Gaussian_Blur

License

MIT