Searched refs:totalError (Results 1 – 1 of 1) sorted by relevance
185 float totalError = 0; in compareImages() local186 totalError += Math.abs((idealAlpha * Color.red(idealColor)) in compareImages()188 totalError += Math.abs((idealAlpha * Color.green(idealColor)) in compareImages()190 totalError += Math.abs((idealAlpha * Color.blue(idealColor)) in compareImages()192 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()194 if ((totalError / 1024.0f) >= pixelThreshold) { in compareImages()195 Assert.fail((message + ": totalError is " + totalError)); in compareImages()198 if (totalError > pixelDiffTolerance) { in compareImages()