Page 1 of 1

Image comparison of x-ray image & a vendor image in asp.net

Posted: 2011-05-13T00:10:35-07:00
by shreya
hi
I have created web based image comparison application in asp.net. Here i am comparing and finding the difference between two images (one is x-ray image which is compared with vendor image) & also finding percentage of similarity between them. But it should display similarity percentage based on which x-ray image maps with vendor image( i.e whether that x-ray image fits with given vendor image if yes then it should shows that much percentage of similarity).Can anyone help me. Give some sample code or link or libraries which will be useful for this. Is this possible through ImageMagick?
Thank you

Re: Image comparison of x-ray image & a vendor image in asp.

Posted: 2011-05-13T10:03:03-07:00
by fmw42
see compare of statistics at http://www.imagemagick.org/Usage/compare/#compare

compare -metric rmse image1 image2 null:

will generate the rmse error measure -- smaller is more similar

compare -metric ncc image1 image2 null:

will generate normalized cross correlation measure --- closer to 1 is more similar

You can also see the places that are different using:

compare image1 image2 diffimage