((BooleanValue) v).bool(d.compareTo(0.0) == 0);
v.setComment("ImageMagick compare returned " + Double.toString(d) + " different pixels");
results.put(measureUri, v);
}
} else {
Double d = imageEvaluator.evaluate(tempDir.getAbsolutePath(), tempFiles.get(sample),
tempFiles.get(result), mode);
if (d != null && d.compareTo(Scale.MAX_VALUE) != 0) {
Value v = scale.createValue();
if (v instanceof FloatValue) {
((FloatValue) v).setValue(d);