Giter Site home page Giter Site logo

msrcr_python's Introduction

MSRCR Python

MSRCR(Multi-Scale Retinex with Color Restoration) 带色彩恢复的多尺度视网膜增强算法。

可以参看这篇博客。该作者按照GIMP中的contrast-retinex插件源码制作了一个MSRCR小工具,并提供了可执行程序(.exe)下载。作者提供了GIMP的插件的源码下载,但没有提供自制工具的源码下载,而这个工具用起来限制颇多也不能用命令行。

前一段时间用到MSRCR算法,于是照着源码自己用Python实现了一个类似的工具,效果基本上相同(当然速度慢很多)。包含命令模式(MSRCR.py)和GUI小工具(MSRCR_GUI.py)两个文件。

命令行

运行MSRCR.py文件即可。

usage: python MSRCR.py [-h] -i INPUT -o OUTPUT [-s S] [-n N] [-d D] [--no_cr]

optional arguments:
  -h, --help                       show this help message and exit
  -i INPUT, --input INPUT          input image path
  -o OUTPUT, --output OUTPUT       output image path
  -s S                             the scale (reference value)
  -n N                             the number of scale
  -d D                             the dynamic, the smaller the value, the higher the contrast
  --no_cr                          do NOT do cr

GUI小工具

运行MSRCR_GUI.py文件即可。

MainWindow

ImgSourceWindow

ImgOutputWindow

msrcr_python's People

Contributors

falrom avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.