diff --git a/doc/snippets/debugtools-compareimage.ansi b/doc/snippets/debugtools-compareimage.ansi new file mode 100644 index 000000000..6075f1c41 --- /dev/null +++ b/doc/snippets/debugtools-compareimage.ansi @@ -0,0 +1,31 @@ +Starting ProcessingTest with 1 test cases... + FAIL [1] process() at …/debugtools-compareimage.cpp on line 77 + Images actual and expected have max delta above threshold, actual 189 but at most 170 expected. Mean delta 13.5776 is below threshold 96. Delta image: + | | + | | + | ~8070DNMN8$ZD7 | + | ?I0: :++~. .I0Z | + | 7I ?$D8ZZ0DZ8, +? | + | ~+ +I ,7NZZ$ | + | : ~ | + | . . | + | , : | + | ~. +. +ID8?. | + | ?. .Z0: +0I :7 | + | .$$. ~D8$Z0DZ. =Z+ | + | =8$DI=,. .:+ZDI$ | + | :70DNMND$+. | + | | + | | + Top 10 out of 66 pixels above max/mean threshold: + [16,5] #000000ff, expected #fcfcfcff (Δ = 189) + [16,27] #fbfbfbff, expected #000000ff (Δ = 188.25) + [15,27] #f2f2f2ff, expected #000000ff (Δ = 181.5) + [17,5] #000000ff, expected #f1f1f1ff (Δ = 180.75) + [15,5] #000000ff, expected #efefefff (Δ = 179.25) + [17,27] #eeeeeeff, expected #000000ff (Δ = 178.5) + [22,20] #000000ff, expected #e7e7e7ff (Δ = 173.25) + [18,23] #060606ff, expected #eaeaeaff (Δ = 171) + [18,9] #e5e5e5ff, expected #040404ff (Δ = 168.75) + [21,26] #efefefff, expected #0f0f0fff (Δ = 168) +Finished ProcessingTest with 1 errors out of 1 checks. diff --git a/doc/snippets/debugtools-compareimage.png b/doc/snippets/debugtools-compareimage.png deleted file mode 100644 index b2a418d80..000000000 Binary files a/doc/snippets/debugtools-compareimage.png and /dev/null differ diff --git a/src/Magnum/DebugTools/CompareImage.h b/src/Magnum/DebugTools/CompareImage.h index f67f02b2c..9b03df5a2 100644 --- a/src/Magnum/DebugTools/CompareImage.h +++ b/src/Magnum/DebugTools/CompareImage.h @@ -97,7 +97,7 @@ To be used with @ref Corrade::TestSuite. Basic use is really simple: Based on actual images used, in case of commparison failure the comparator can give for example the following result: -@image html debugtools-compareimage.png +@include debugtools-compareimage.ansi Supports the following formats: