Page 2 of 2

Re: Error I'm getting with MagickCore but not MagickWand

Posted: 2013-02-14T11:05:29-07:00
by snibgo
That last image shows typical JPG blocking. Horrible. What you need is a high resolution camera with perspective control lens -- the lens shifts sideways, so it photographs the target head-on without the camera being in the firing line. And use raw images, so you don't get JPEG nastiness.

Re: Error I'm getting with MagickCore but not MagickWand

Posted: 2013-02-14T16:09:48-07:00
by el_supremo
I have it figured out (I hope). The MagickSetOption doesn't set the fuzz that is used by the compareImages function. It needs MagickSetFuzz to do that. Here's a snippet that works:

Code: Select all

	MagickReadImage(img1, "original-after-transform.jpg");
	MagickSetImageArtifact(img1,"highlight-color","blue");
	MagickSetImageFuzz(img1,5000.);

	MagickReadImage(img2,"changed-after-transform.jpg");

	// the command line didn't specify a metric
	m_wand = MagickCompareImages(img1,img2,UndefinedMetric,&distortion);
Pete

Re: Error I'm getting with MagickCore but not MagickWand

Posted: 2013-02-14T19:49:28-07:00
by 168gr
That would explain why messing with the fuzz value didn't seem to have any effect. :) Much better now, thank you. I'm sure higher res images will help, too.