Skip to content

falrom/MSRCR_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

MSRCR command/GUI tools in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages