Page 1 of 1

ImageMagick dll and Exe returns two different values for RMSE image comparison

Posted: 2018-10-22T05:47:32-07:00
by nikhildinesh
I'm using ImageMagick with version 7.0 installed in my machine. For RMSE comparison for the below CLI input i'm getting some values which are different when i use dll in my c# code.

CLI code:

magick.exe compare -metric RMSE -subimage-search "image1.jpg" "image2.jpg" null:
C# code:

double diff = image1.Compare(image2, ErrorMetric.RootMeanSquared);
Is anyone know how to get the same results?

Re: ImageMagick dll and Exe returns two different values for RMSE image comparison

Posted: 2018-10-22T06:21:42-07:00
by snibgo
What values are you getting from the two methods?

If you post links to your inputs, we can use other methods to nail down the difference.

Re: ImageMagick dll and Exe returns two different values for RMSE image comparison

Posted: 2018-10-22T09:37:30-07:00
by dlemstra
It looks like you want to do a `SubImageSearch` instead of a `Compare`?