- BOOST_CHECK_MESSAGE (
- !ref_image.compare(check_image),
- ref << " differs from " << check << " "
- << ref_image.meanErrorPerPixel() << " " << ref_image.normalizedMaxError() << " " << ref_image.normalizedMeanError()
- );
+ double const dist = ref_image.compare(check_image, Magick::RootMeanSquaredErrorMetric);
+ BOOST_CHECK_MESSAGE (dist < 0.001, ref << " differs from " << check << " " << dist);