Lines Matching refs:threshold
90 static int findNumPositionDeviationFailingPixels (const PixelBufferAccess& errorMask, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, const tcu::IVec3& maxPositionDeviation, bool acceptOutOfBoundsAsAnyValue)
111 const bool isOk = boolAll(lessThanEqual(diff, threshold));
145 const bool isOk = boolAll(lessThanEqual(diff, threshold));
158 const bool isOk = boolAll(lessThanEqual(diff, threshold));
193 * metric is usually <0.01. Thus good threshold values are in range 0.02 to
205 * \param threshold Error metric threshold (good values are 0.02-0.05)
209 bool fuzzyCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, float threshold, CompareLogMode logMode)
214 bool isOk = difference <= threshold;
228 log << TestLog::Message << "Image comparison failed: difference = " << difference << ", threshold = " << threshold << TestLog::EndMessage;
262 * metric is usually <0.01. Thus good threshold values are in range 0.02 to
274 * \param threshold Error metric threshold (good values are 0.02-0.05)
278 bool fuzzyCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const Surface& reference, const Surface& result, float threshold, CompareLogMode logMode)
280 return fuzzyCompare(log, imageSetName, imageSetDesc, reference.getAccess(), result.getAccess(), threshold, logMode);
389 * \brief Per-pixel threshold-based comparison
392 * image. Comparison fails if any pixels exceed the given threshold value.
406 * \param threshold
410 bool floatUlpThresholdCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, CompareLogMode logMode)
439 bool isOk = boolAll(lessThanEqual(diff, threshold));
448 bool compareOk = boolAll(lessThanEqual(maxDiff, threshold));
461 log << TestLog::Message << "Image comparison failed: max difference = " << maxDiff << ", threshold = " << threshold << TestLog::EndMessage;
483 * \brief Per-pixel threshold-based comparison
486 * image. Comparison fails if any pixels exceed the given threshold value.
499 * \param threshold Maximum allowed difference
503 bool floatThresholdCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const Vec4& threshold, CompareLogMode logMode)
526 bool isOk = boolAll(lessThanEqual(diff, threshold));
535 bool compareOk = boolAll(lessThanEqual(maxDiff, threshold));
548 log << TestLog::Message << "Image comparison failed: max difference = " << maxDiff << ", threshold = " << threshold << TestLog::EndMessage;
570 * \brief Per-pixel threshold-based comparison
573 * color. Comparison fails if any pixels exceed the given threshold value.
586 * \param threshold Maximum allowed difference
590 bool floatThresholdCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const Vec4& reference, const ConstPixelBufferAccess& result, const Vec4& threshold, CompareLogMode logMode)
610 const bool isOk = boolAll(lessThanEqual(diff, threshold));
619 bool compareOk = boolAll(lessThanEqual(maxDiff, threshold));
631 log << TestLog::Message << "Image comparison failed: max difference = " << maxDiff << ", threshold = " << threshold << ", reference = " << reference << TestLog::EndMessage;
652 * \brief Per-pixel threshold-based comparison
655 * image. Comparison fails if any pixels exceed the given threshold value.
668 * \param threshold Maximum allowed difference
672 bool intThresholdCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, CompareLogMode logMode)
695 bool isOk = boolAll(lessThanEqual(diff, threshold));
704 bool compareOk = boolAll(lessThanEqual(maxDiff, threshold));
717 log << TestLog::Message << "Image comparison failed: max difference = " << maxDiff << ", threshold = " << threshold << TestLog::EndMessage;
739 * \brief Per-pixel threshold-based deviation-ignoring comparison
742 * image. Comparison fails if there is no pixel matching the given threshold
760 * \param threshold Maximum allowed difference
767 bool intThresholdPositionDeviationCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, const tcu::IVec3& maxPositionDeviation, bool acceptOutOfBoundsAsAnyValue, CompareLogMode logMode)
774 const int numFailingPixels = findNumPositionDeviationFailingPixels(errorMask, reference, result, threshold, maxPositionDeviation, acceptOutOfBoundsAsAnyValue);
793 << "\tcolor threshold = " << threshold
816 * \brief Per-pixel threshold-based deviation-ignoring comparison
820 * threshold value in the search volume. Comparison fails if the number of
838 * \param threshold Maximum allowed difference
846 bool intThresholdPositionDeviationErrorThresholdCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, const tcu::IVec3& maxPositionDeviation, bool acceptOutOfBoundsAsAnyValue, int maxAllowedFailingPixels, CompareLogMode logMode)
853 const int numFailingPixels = findNumPositionDeviationFailingPixels(errorMask, reference, result, threshold, maxPositionDeviation, acceptOutOfBoundsAsAnyValue);
872 << "\tcolor threshold = " << threshold
896 * \brief Per-pixel threshold-based comparison
899 * image. Comparison fails if any pixels exceed the given threshold value.
909 * \param threshold Maximum allowed difference
913 bool pixelThresholdCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const Surface& reference, const Surface& result, const RGBA& threshold, CompareLogMode logMode)
915 return intThresholdCompare(log, imageSetName, imageSetDesc, reference.getAccess(), result.getAccess(), threshold.toIVec().cast<deUint32>(), logMode);
932 * \param threshold Maximum local difference
936 bool bilinearCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const RGBA threshold, CompareLogMode logMode)
939 bool isOk = bilinearCompare(reference, result, errorMask, threshold);
949 log << TestLog::Message << "Image comparison failed, threshold = " << threshold << TestLog::EndMessage;