MATLAB Answers

how to calculate degree of similarity between two images

299 views (last 30 days)
bay rem
bay rem on 3 Feb 2016
Commented: Image Analyst on 15 Sep 2019
i wanna know if there is a way to calculate degree of similarity between two images?

  0 Comments

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 3 Feb 2016
ssimval = ssim(A,ref) computes the Structural Similarity Index (SSIM) value for image A using ref as the reference image.
peaksnr = psnr(A,ref) calculates the peak signal-to-noise ratio for the image A, with the image ref as the reference. A and ref must be of the same size and class.
err = immse(X,Y) calculates the mean-squared error (MSE) between the arrays X and Y. X and Y can be arrays of any dimension, but must be of the same size and class.

  9 Comments

Show 6 older comments
Peter Kamfor
Peter Kamfor on 17 Jan 2019
lol if Image Analyst doesn't know... It probably doesn't even exists. Spent a month with his comments which were the biggest help in my assignment.
nor azam
nor azam on 10 Sep 2019
can you explain this part:
err = immse(X,Y)
is it use for image A or both A & Ref image?
Image Analyst
Image Analyst on 15 Sep 2019
X is your "test" image, and Y is your reference image.

Sign in to comment.

More Answers (0)

Sign in to answer this question.