'How to use these image similarity metrics with pixel data instead of .jpg files?
So, I'd like to use the functions in this image similarity python package that has 8 similarity metrics. Aka, instead of downloading the package, I just want to copy and paste these functions (from the quality_metrics.py file) into to my python file.
However, it looks like this package evaluates .jpg or .png files. But, I would like to compare the pixel data of two images. Specifically, I have two variables, "img_1" and "img_2" that are numpy.ndarray and of shape (64, 128, 1).
How can I modify the functions so that it takes these variables as input rather than .jpg or .png files? I really just need an example of one or two of the functions modified and I can figure out the rest. Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
