Page 1 of 1

Command Line Statement to Magickcore Code

Posted: 2013-10-28T19:10:04-07:00
by 8ifhv
Can someone help me convert this command line statement to magickcore C code:

"compare -metric RMSE image.jpg image2.jpg NULL 2>&1"

I believe I should use CompareImageChannels()?

Re: Command Line Statement to Magickcore Code

Posted: 2013-10-29T10:37:09-07:00
by dlemstra
You are better of using GetImageChannelDistortion with MetricType=RootMeanSquaredErrorMetric

Re: Command Line Statement to Magickcore Code

Posted: 2013-11-08T20:55:59-07:00
by 8ifhv
I'm having trouble getting MagickCore working.

Here's the details with the issue:

http://stackoverflow.com/questions/1987 ... tion-error

Re: Command Line Statement to Magickcore Code

Posted: 2013-11-09T06:48:20-07:00
by magick

Code: Select all

double distortion;
aaaa = GetImageChannelDistortion(base_image, reference_image, channel, metric, &distortion, exception);

Re: Command Line Statement to Magickcore Code

Posted: 2013-11-14T17:46:54-07:00
by 8ifhv
Worked. Thanks for the help!