Matlab implementation of Peak signal-to-noise ratio (PSNR) and structural similarity (SSIM).
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 .
@ghada sandoub: which Matlab version you use?
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)
Error in demo (line 7)
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.
why the results from matlab buit in SSIM values differ from your calculations ? how are you defining C1, C2 values ?
Create scripts with code, output, and formatted text in a single executable document.