Commit 29d440d
committed
Make auto_threshold test robust across OpenCV builds
ccoeff_normed scores span [-1, 1], so the Otsu cut-off can legitimately be
negative on some OpenCV builds (match_auto clamps it with floor anyway). Assert
the threshold is below a perfect match and use a relative separability check
(bimodal > flat) instead of absolute bounds.1 parent 620bd56 commit 29d440d
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
0 commit comments