Save SSIM index output
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Angela
le 15 Sep 2018
Commenté : Image Analyst
le 15 Sep 2018
I have 2 images (A,B) that i want to compare using the SSIM Index. I am using the command
[ssimval, ssimmap] = ssim(A,B);
imshow(ssimmap,[])
When i plot ssimmap i can see the different structures. When i save the ssimmap and then read the image:
imwrite(ssimmap,'test.jp2','Mode','lossless')
NewImage=imread('test.jp2')
When i plot 'NewImage' it looks all flat, it is different than 'ssimmap'. Is there something different about 'ssimmap' that it has to be saved in a special way? I want to be able to save ssimmap as an output file.
0 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 15 Sep 2018
%Try
[ssimval, ssimmap]=ssim(A,B);
imshow(ssimmap,[]);
saveas(gcf,'test.jpg');
NewImage=imread('test.jpg');
2 commentaires
Image Analyst
le 15 Sep 2018
saveas() saves the whole figure. Use imwrite to save just the image
imwrite(ssimmap, 'ssimmap.png');
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Point Cloud Processing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!