MIT License

项目介绍

nekhtiari/image-similarity-measures 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 649 个 Star、70 次 Fork。

仓库全名
nekhtiari/image-similarity-measures
开源许可证
MIT License
Star 数
649
Fork 数
70
未关闭 Issue
10

README 摘要

Image Similarity Measures Python package and commandline tool to evaluate the similarity between two images with eight evaluation metrics: Root mean square error (RMSE) Peak signal-to-noise ratio (PSNR) Structural Similarity Index (SSIM) Feature-based similarity index (FSIM) Information theoretic-based Statistic Similarity Measure (ISSM) Signal to reconstruction error ratio (SRE) Spectral angle mapper (SAM)…

完整内容见 GitHub 原始 README 或本页 。

常见问题

image-similarity-measures 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 649 个 Star。

image-similarity-measures 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 image-similarity-measures 的源码?

可以直接克隆仓库:git clone https://github.com/nekhtiari/image-similarity-measures.git,默认分支为 master;安装与运行步骤见仓库 README。

image-similarity-measures 最近还在维护吗?

仓库最近一次更新为 9月6日,当前有 10 个未关闭 Issue;Star 数为 649,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

:chart_with_upwards_trend: Implementation of eight evaluation metrics to access the similarity between two images. The eight metrics are as follows: RMSE, PSNR, SSIM, ISSM, FSIM, SRE, SAM, and UIQ.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
801
价值分
411
活跃状态
活跃

语言占比

Python

Release

README

Image Similarity Measures

Python package and commandline tool to evaluate the similarity between two images with eight evaluation metrics:

Installation

Supports Python >=3.10.

pip install image-similarity-measures

Optional: For faster evaluation of the FSIM metric, the pyfftw package is required, install via:

pip install image-similarity-measures[speedups]

Optional: For reading TIFF images with rasterio instead of OpenCV, install:

pip install image-similarity-measures[rasterio]

Usage on commandline

To evaluate the similarity beteween two images, run on the commandline:

image-similarity-measures --org_img_path=a.tif --pred_img_path=b.tif

Note that images that are used for evaluation should be channel last. The results are printed in machine-readable JSON, so you can redirect the output of the command into a file.

Parameters
  --org_img_path FILE   Path to original input image
  --pred_img_path FILE  Path to predicted image
  --metric METRIC       select an evaluation metric (fsim, issm, psnr, rmse,
                        sam, sre, ssim, uiq, all) (can be repeated)

Usage in Python

from image_similarity_measures.evaluate import evaluation

evaluation(org_img_path="example/lafayette_org.tif", 
           pred_img_path="example/lafayette_pred.tif", 
           metrics=["rmse", "psnr"])
from image_similarity_measures.quality_metrics import rmse

rmse(org_img=np.random.rand(3,2,1), pred_img=np.random.rand(3,2,1))

Contribute

Contributions are welcome! Please see README-dev.md for instructions.

Citation

Please use the following for citation purposes of this codebase:

Müller, M. U., Ekhtiari, N., Almeida, R. M., and Rieke, C.: SUPER-RESOLUTION OF MULTISPECTRAL SATELLITE IMAGES USING CONVOLUTIONAL NEURAL NETWORKS, ISPRS Ann. Photogramm. Remote Sens. Spatial Inf. Sci., V-1-2020, 33–40, https://doi.org/10.5194/isprs-annals-V-1-2020-33-2020, 2020.

评论

暂无评论