用cpbd度量计算图像的锐度

cpbd的Python项目详细描述


关于

cpbd是一种基于感知的无参考目标图像清晰度度量。 基于模糊检测的累积概率developed at the Image, Video and Usability Laboratory of Arizona State University

[The metric] is based on the study of human blur perception for varying contrast values. The metric utilizes a probabilistic model to estimate the probability of detecting blur at each edge in the image, and then the information is pooled by computing the cumulative probability of blur detection (CPBD).

这个软件是reference MATLAB implementation的python端口。 近似MATLAB的专有实现的行为 sobel运算符,它使用一个实现inspired by GNU Octave

学分

如果您使用此代码发布研究结果,我恳请您 参考原始作者的论文 上一节以及它们在 参考文献。另见参考文献的版权声明 在license file中实现。 谢谢您!

安装

$ pip install cpbd

用法

In [1]: import cpbd

In [2]: from scipy import ndimage

In [3]: input_image = ndimage.imread('/tmp/LIVE_Images_GBlur/img4.bmp', mode='L')

In [4]: cpbd.compute(input_image)
Out[4]: 0.75343203230148048

开发

$ git clone git@github.com:0x64746b/python-cpbd.git
Cloning into 'python-cpbd'...
$ cd python-cpbd
$ pip install -U '.[dev]'

使用调用解释器快速运行测试:

$ python setup.py test

在不同的解释器下测试库:

$ tox

性能

下图显示了此端口的准确性 当在 imagesLIVE database

Performance on LIVE database

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何从InputStream中准确读取4个字节?   Java错误:找不到符号(使用add调用arrayList时)   JavaFX表格视图分组行   java Akka PoolRouter添加withBroadcastPredicate正在冻结应用程序   java在何处以及如何解码@PathVariable   java扩展类后如何扩展类数组/调用类数组属性?   Java:如何让对象引用它在其中实例化的对象   从POSTMAN接收到的数据与JAVA rest api调用不匹配   jar中的java文件加载   java不能使用Scanner。下一步()和扫描仪。nextInt()在一起   java如何加载日志。Jboss中项目的resources文件夹中的xml文件   io如何在Java中压缩文件和文件夹?   java如何在JDesktopPane中锁定内部框架   EclipseJDK9不允许我使用字符串:“java.lang.String不明确”?   java会话。delete()不工作   java循环用户输入,直到满足条件   图形Java Delta时间会导致不平稳的移动   java在HQL中使用瞬态字段