File Exchange

image thumbnail

Structure Similarity (SSIM) and PSNR

version 1.0.0.1 (497 KB) by Mahmoud Afifi
Matlab implementation of Peak signal-to-noise ratio (PSNR) and structural similarity (SSIM).

35 Downloads

Updated 04 Jan 2019

View License

Matlab implementation of Peak signal-to-noise ratio (PSNR) and structural similarity (SSIM).
Run demo

Cite As

Mahmoud Afifi (2019). Structure Similarity (SSIM) and PSNR (https://www.mathworks.com/matlabcentral/fileexchange/64151-structure-similarity-ssim-and-psnr), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

@ghada sandoub: which Matlab version you use?

zhsl

If you get error like "mu1=imgaussfilt(frameReference,1.5);", test Matlab 2015a version or above.

this code cause error in applying SSIM . the error message is :
Undefined function 'imgaussfilt' for input arguments of type 'double'.

Error in getMSSIM (line 16)
mu1=imgaussfilt(frameReference,1.5);

Error in demo (line 7)
ssim_=getMSSIM(image1,image2);

can you help me to fix this error

@Amir Matin I guess Matlab code applies the process using a sliding window that convolves through the image and the final result is the average of this window. Here, the calculations are done on the entire image directly.

Amir Matin

why the results from matlab buit in SSIM values differ from your calculations ? how are you defining C1, C2 values ?

peking

Updates

1.0.0.1

.

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux