How can I measure the error between two speckle intensities. ?
How can I measure the error between two speckle intensities. ?
Hi,
What do you mean by error? In what context? What data to you have?
If you have two speckle images and you want to know how close they are, you can just calculate the quadratic error:
\sum((I1[n]-I2[n])^2)
which is 0 if the two speckle are the same
Or calculate the correlation between the two images
\sum(I1[n]I2[n])/\sqrt(\sum(I1[n]I1[n])\sum(I2[n]I2[n]))
which is 100% if the two speckles are the same.
Best,
Sebastien
Thanks Sebastin.
I would like to see how close the two speckle images are.
So by correlation you mean correlation coefficient if I am not mistaken ?
Yes, the correlation coefficient is one standard measure of the similarity between two images.