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 » 2018-10-22T05:47:32-07:00

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: 10929
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 » 2018-10-22T06:21:42-07:00

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: 1512
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 » 2018-10-22T09:37:30-07:00

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