Index: experimental/skpdiff/SkPMetric.cpp |
diff --git a/experimental/skpdiff/SkPMetric.cpp b/experimental/skpdiff/SkPMetric.cpp |
index 710b18bd2005b2efd3494126aa856eb3e93dee18..a9628539b556584a888d2cbe1443692261aeba4c 100644 |
--- a/experimental/skpdiff/SkPMetric.cpp |
+++ b/experimental/skpdiff/SkPMetric.cpp |
@@ -379,7 +379,7 @@ float pmetric(const ImageLAB* baselineLAB, const ImageLAB* testLAB, SkTDArray<Sk |
SkDELETE_ARRAY(cyclesPerDegree); |
SkDELETE_ARRAY(contrast); |
SkDELETE_ARRAY(thresholdFactorFrequency); |
- return (double)failures; |
+ return 1.0 - (double)failures / (width * height); |
} |
const char* SkPMetric::getName() { |