Compare experimental and simulated image to estimate error

Hello!
My aim is to compare experimental image with several simulated images to extract the error and to finally make a plot of this error.
More precisely, here is an experimentally obtained map or image:
Now here is the simulation:
So the idea is to compare several (more than two dozens !)simulated images with experimentally obtained one to estimate the error of the distribution or how 'close' it is to that of the experimental image.
Could someone please point me in the right direction or provide some ideas ? I have no prior experience in image processing or analysis.

2 Comments

You can get both the images to same dimensions...and find the difference?
Sure I can change the dimension. I don't know how to proceed with a script that compares and find the difference.

Sign in to comment.

 Accepted Answer

Let I1 be your experimental image, I2 be your simulated image.
[m,n,p] = size(I1) ;
I2_resize = imresize(I2,[m n]) ;
dI = I1-I2 ;
imshow(dI)

2 Comments

Thank you. Your script works but it is not what I am looking for. I am looking for a comparison that is quantified which I can plot to see the margin of difference of several other images with respect to the reference.
The above gives difference right?

Sign in to comment.

More Answers (0)

Asked:

on 18 Sep 2020

Commented:

on 18 Sep 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!