在Matlab / Python中的两个图像之间精确度百分比(%)相似性指数

问题描述 投票:2回答:1

我正在尝试分析两个图像:使用傅立叶变换生成的原始和近似版本。

示例:

原文:enter image description here

大约:

enter image description here

如何找到代表这两个图像之间相似度的值。我曾尝试在Matlab中使用SSIM,但得出的值为0.67,我个人认为这是不准确的。

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));

enter image description here

类似,一些在线工具,例如:https://deepai.org/machine-learning-model/image-similarity给出的距离值为6。(0为最佳)

python image matlab similarity ssim
1个回答
1
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.