简体   繁体   中英

Fine A Precentage(%) Similarity Index Between Two Images in Matlab/Python

I am trying to analyse two images: The origional and an approximated version generated using Fourier transforms.

Example:

Original: 在此处输入图片说明

Approx:

在此处输入图片说明

How can i find a value that represents the similarity between these two images. I have tried using SSIM in Matlab, but that gives a value of 0.67, which i personally think is inaccurate.

ref = imread('download (1).png');

A = imread('download.png')


subplot(1,2,1); imshow(ref); title('Reference Image');
subplot(1,2,2); imshow(A);   title('Blurred Image');

Calculate the global SSIM value for the image and local SSIM values for each pixel. Return the global SSIM value and display the local SSIM value map.
[ssimval, ssimmap] = ssim(A,ref);

fprintf('The SSIM value is %0.4f.\n',ssimval);

figure, imshow(ssimmap,[]);
title(sprintf('ssim Index Map - Mean ssim Value is %0.4f',ssimval));

在此处输入图片说明

Like wise, a few online tools such as this one: https://deepai.org/machine-learning-model/image-similarity Gives a distance value of 6. (0 being the best)

IMATEST 软件已更新,修复了此错误。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM