From bb0a4ea194e99ebe247cc25baa31889353a2b666 Mon Sep 17 00:00:00 2001 From: Leonid Kostrykin Date: Mon, 22 Apr 2024 10:23:49 +0200 Subject: [PATCH] Add failing test case to reproduce an issue --- tools/2d_auto_threshold/auto_threshold.xml | 7 +++++++ tools/2d_auto_threshold/test-data/out5.tif | Bin 0 -> 9616 bytes tools/2d_auto_threshold/test-data/sample2.tif | Bin 0 -> 9536 bytes 3 files changed, 7 insertions(+) create mode 100644 tools/2d_auto_threshold/test-data/out5.tif create mode 100644 tools/2d_auto_threshold/test-data/sample2.tif diff --git a/tools/2d_auto_threshold/auto_threshold.xml b/tools/2d_auto_threshold/auto_threshold.xml index 02e5b247..20042c52 100644 --- a/tools/2d_auto_threshold/auto_threshold.xml +++ b/tools/2d_auto_threshold/auto_threshold.xml @@ -124,6 +124,13 @@ + + + + + + + diff --git a/tools/2d_auto_threshold/test-data/out5.tif b/tools/2d_auto_threshold/test-data/out5.tif new file mode 100644 index 0000000000000000000000000000000000000000..8f5c6e853928d7106b4dc537c93dcb546dd542ae GIT binary patch literal 9616 zcmeHJ+e!mL44rLNM5Lg2f%;O449d!V?Pq_A6 z?-hU!JQ5W(zR5f{dEEqwp zfYo{Vh=8&RJRTGk6F{4|g)AqGiRshhD~NS6Yi0r_HU;(*4v8A1@4}S9`91Oi{Ie8f zap1Q&Ap6)!znCn4?A>7y$!6F5s7oY(kS6+@a%{w?M8gn9HDw6G2qNndgpgiYL|}zq zVuB(7Yc(dAFLK9eJ8=Jnf=)=_yQ&WoM36}{0@__y^*2d{04xVm^hdxTWS%&jJwW;Z zq`n)1#gJsN>Pk_FgONJa}XA&fx^ zf^c{V*#} z?X8`VO~H&`6Z@jI>Av>s?{Eyz5DvxZ$7#+882pUB_K%3CoiAa z)uXFNU;fHpe_6&)L|%$~De_L_ZzAtU-i&-A@_OW5xxN?q3g#QPZ*OeKpET{w$V_gd zQ7dXQ3FcI&-t(iecs%BNf}@Sd4iqxQ(O&H2Pg=mQGqsW)1M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