Lines Matching refs:baseline
131 void CountImageSizeMismatchAsPixelDifference(const Image& baseline, in CountImageSizeMismatchAsPixelDifference() argument
134 int w = std::min(baseline.w(), actual.w()); in CountImageSizeMismatchAsPixelDifference()
135 int h = std::min(baseline.h(), actual.h()); in CountImageSizeMismatchAsPixelDifference()
138 int max_w = std::max(baseline.w(), actual.w()); in CountImageSizeMismatchAsPixelDifference()
139 int max_h = std::max(baseline.h(), actual.h()); in CountImageSizeMismatchAsPixelDifference()
146 float PercentageDifferent(const Image& baseline, const Image& actual) { in PercentageDifferent() argument
147 int w = std::min(baseline.w(), actual.w()); in PercentageDifferent()
148 int h = std::min(baseline.h(), actual.h()); in PercentageDifferent()
154 if (baseline.pixel_at(x, y) != actual.pixel_at(x, y)) in PercentageDifferent()
159 CountImageSizeMismatchAsPixelDifference(baseline, actual, &pixels_different); in PercentageDifferent()
163 float HistogramPercentageDifferent(const Image& baseline, const Image& actual) { in HistogramPercentageDifferent() argument
168 int w = std::min(baseline.w(), actual.w()); in HistogramPercentageDifferent()
169 int h = std::min(baseline.h(), actual.h()); in HistogramPercentageDifferent()
176 ++baseline_histogram[baseline.pixel_at(x, y)]; in HistogramPercentageDifferent()
193 CountImageSizeMismatchAsPixelDifference(baseline, actual, &pixels_different); in HistogramPercentageDifferent()