SSIM on Python
<p>SSIM or Structural Similarity Index is metric that we could use to measure how similiar is two images. It measures images luminance, contrast and structure and compare those values on 2 images.</p>
<p>Using skimage.metrics, we will count SSIM between 2 images.</p>
<p>First, import numpy, cv2, skimage, pandas, seaborn.</p>
<pre>
import cv2
from skimage import data, img_as_float
from skimage.metrics import structural_similarity as ssim</pre>
<p>We will use cv2 to read the image. Skimage will be used to count SSIM. Please make sure to place images you want to measure in the same folder with the python file / jupyter notebook file. Or you could change your working directory to images folder.</p>
<p><a href="https://medium.com/@danielyogatama.dy/ssim-on-python-eb1a76a2799b"><strong>Click Here</strong></a></p>