Skip to main content

Evaluation metrics to assess the similarity between two images.

Project description

Image Similarity Measures

Implementation of eight evaluation metrics to access the similarity between two images. The eight metrics are as follows:

Instructions

The following step-by-step instructions will guide you through installing this package and run evaluation using the command line tool.

Install package

pip install image-similarity-measures

Usage

Parameters

--org_img_path : Path to the original image.
--pred_img_path : Path to the predicted or disordered image which is created from the original image.
--metric= : Name of the evaluation metric. Default set to be psnr. It can be one of the following: psnr, ssim, issm, fsim.
--mode : Image format. Default set to be "tif". can be one of the following: "tif", or "png", or "jpg".
--write_to_file : The final result will be written to a file. Set to False if you don't want a final file.

Evaluation

For doing the evaluation, you can easily run the following command:

image-similarity-measures --org_img_path=path_to_first_img --pred_img_path=path_to_second_img --mode=tif

If you want to save the final result in a file you can add --write_to_file at then end of above command.

Note that images that are used for evaluation should be channel last.

Usage in python

import image_similarity_measures
from image_similarity_measures.quality_metrics import rmse, psnr

Install package from source

Clone the repository

git clone https://github.com/up42/image-similarity-measures.git
cd image-similarity-measures

Then navigate to the folder via cd image-similarity-measures.

Installing the required libraries

First create a new virtual environment called similarity-measures, for example by using virtualenvwrapper:

mkvirtualenv --python=$(which python3.7) similarity-measures

Activate the new environment:

workon similarity-measures

Install the necessary Python libraries via:

bash setup.sh

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

image-similarity-measures-0.3.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

image_similarity_measures-0.3.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file image-similarity-measures-0.3.1.tar.gz.

File metadata

  • Download URL: image-similarity-measures-0.3.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6

File hashes

Hashes for image-similarity-measures-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0c7ebee8d555e58536901f8cb5101d18c0b429bf57ff97db28baca8ac664171a
MD5 6e6fba1886ff12667258312b1aaf14aa
BLAKE2b-256 ebff19435ca56fd61790974b463bfc746f4d637d0c98507b2c492f9cabc5ba1d

See more details on using hashes here.

File details

Details for the file image_similarity_measures-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: image_similarity_measures-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6

File hashes

Hashes for image_similarity_measures-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a9d76744ebd7dd8743ce38b913e93b0dc793eae0ba2b8848bca134260f99a684
MD5 70debd4fe9c2f07012989a22d41084d6
BLAKE2b-256 b006853958285cdcfd88a62e579ba19aefc5f27b785b6980b3ae9076074c4376

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page