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

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
nikhildinesh
Posts: 1
Joined: 2018-10-22T05:43:51-07:00
Authentication code: 1152

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

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post by dlemstra »

It looks like you want to do a `SubImageSearch` instead of a `Compare`?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply