Searched refs:totalError (Results 1 – 3 of 3) sorted by relevance
46 float totalError = getMSE(ideal, given, offset, stride, width, height); in verifySame() local47 Log.d(TAG, "Error : " + totalError); in verifySame()48 return (totalError < (mErrorPerPixel)); in verifySame()80 float totalError = 0; in getMSE() local88 totalError += (difference * difference); in getMSE()92 totalError /= (width * height); in getMSE()93 return totalError; in getMSE()
87 float totalError = 0; in verifySame() local97 totalError += errorBetweenPixels(idealColor, givenColor); in verifySame()101 totalError /= TOTAL_ERROR_DIVISOR; in verifySame()102 totalError /= interestingPixels; in verifySame()104 Log.d(TAG, "Total error : " + totalError); in verifySame()106 return totalError < mThreshold; in verifySame()
162 float totalError = 0; in compareImages() local163 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor)); in compareImages()164 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor)); in compareImages()165 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor)); in compareImages()166 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()168 if ((totalError / 1024.0f) >= pixelThreshold) { in compareImages()169 Assert.fail((message + ": totalError is " + totalError)); in compareImages()172 if (totalError > pixelDiffTolerance) { in compareImages()