• Stars
    star
    123
  • Rank 288,618 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python code for several metrics: PSNR, SSIM, UCIQE and UIQM

PSNR-SSIM-UCIQE-UIQM-Python

Python code for several metrics: PSNR, SSIM, UCIQE and UIQM

Calculating PSNR and SSIM requirs reference images. The evaluate.py assume result images and reference images are named as the following rule:

A result image is named as: xxxxcorrected.png Its reference image is named as: xxxx.png

You can modify lines 199-202 in evaluate.py to make it work for your data with different naming rule.

PSNR, SSIM, UCIQE and UIQM

$ python evaluate.py RESULT_PATH REFERENCE_PATH

Only UCIQE and UIQM

$ python nevaluate.py RESULT_PATH

If you find the code useful, please star this repo. Thank you!