MATLAB Answers

Compare experimental and simulated image to estimate error

5 views (last 30 days)
sandy
sandy on 18 Sep 2020
Commented: KSSV on 18 Sep 2020
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

KSSV
KSSV on 18 Sep 2020
You can get both the images to same dimensions...and find the difference?
sandy
sandy on 18 Sep 2020
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

KSSV
KSSV on 18 Sep 2020
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

sandy
sandy on 18 Sep 2020
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.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by