Home | History | Annotate | Download | only in gtk

Lines Matching defs:difference

41     { "tolerance", 0, 0, G_OPTION_ARG_DOUBLE, &tolerance, "Percentage difference between images before considering them different", "T" },
132 // Compute the difference as a percentage combining both the number of
133 // different pixels and their difference amount i.e. the average distance
135 float difference = 0;
137 difference = 100.0f * sum / (height * width);
138 if (difference <= tolerance)
139 difference = 0;
141 difference = roundf(difference * 100.0f) / 100.0f;
142 difference = max(difference, 0.01f); // round to 2 decimal places
147 return difference;
167 float difference = calculateDifference(baselineImage, actualImage, &differenceImage);
168 if (difference > 0.0f) {
173 printf("diff: %01.2f%% failed\n", difference);
175 printf("diff: %01.2f%% passed\n", difference);
184 GOptionContext* context = g_option_context_new("- compare two image files, printing their percentage difference and the difference image to stdout");