Lines Matching defs:Image
39 class Image {
41 Image() : w_(0), h_(0) {
44 Image(const Image& image)
45 : w_(image.w_),
46 h_(image.h_),
47 data_(image.data_) {
66 // Creates the image from the given filename on disk, and returns true on
118 // Pixel dimensions of the image.
125 float CalculateDifferencePercentage(const Image& actual, int pixels_different) {
137 void CountImageSizeMismatchAsPixelDifference(const Image& baseline,
138 const Image& actual,
152 float PercentageDifferent(const Image& baseline, const Image& actual) {
172 float HistogramPercentageDifferent(const Image& baseline, const Image& actual) {
214 " Compares two files on disk, outputs an image that visualizes the\n"
221 Image actual_image;
222 Image baseline_image;
245 // failure: The WebKit version also writes the difference image to
253 bool CreateImageDiff(const Image& image1, const Image& image2, Image* out) {
256 *out = Image(image1);
259 // TODO(estade): do something with the extra pixels if the image sizes
283 Image actual_image;
284 Image baseline_image;
295 Image diff_image;