Lines Matching refs:baseline
121 void CountImageSizeMismatchAsPixelDifference(const Image& baseline, in CountImageSizeMismatchAsPixelDifference() argument
124 int w = std::min(baseline.w(), actual.w()); in CountImageSizeMismatchAsPixelDifference()
125 int h = std::min(baseline.h(), actual.h()); in CountImageSizeMismatchAsPixelDifference()
128 int max_w = std::max(baseline.w(), actual.w()); in CountImageSizeMismatchAsPixelDifference()
129 int max_h = std::max(baseline.h(), actual.h()); in CountImageSizeMismatchAsPixelDifference()
136 float PercentageDifferent(const Image& baseline, const Image& actual) { in PercentageDifferent() argument
137 int w = std::min(baseline.w(), actual.w()); in PercentageDifferent()
138 int h = std::min(baseline.h(), actual.h()); in PercentageDifferent()
144 if (baseline.pixel_at(x, y) != actual.pixel_at(x, y)) in PercentageDifferent()
149 CountImageSizeMismatchAsPixelDifference(baseline, actual, &pixels_different); in PercentageDifferent()
153 float HistogramPercentageDifferent(const Image& baseline, const Image& actual) { in HistogramPercentageDifferent() argument
158 int w = std::min(baseline.w(), actual.w()); in HistogramPercentageDifferent()
159 int h = std::min(baseline.h(), actual.h()); in HistogramPercentageDifferent()
166 ++baseline_histogram[baseline.pixel_at(x, y)]; in HistogramPercentageDifferent()
183 CountImageSizeMismatchAsPixelDifference(baseline, actual, &pixels_different); in HistogramPercentageDifferent()