From 1ef9df29fb2d5bb6585e0d0ed99e13a900289e7b Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 23 Jul 2020 23:09:43 +0100 Subject: Update to v0.2.1 of integralimg, and improve various things - Improve integral sauvola by rounding threshold correctly - The Sauvola functions can now process any image.Image, not just an image.Gray - Add ImageWindower interface and use it to generalise wipesides.go - Rely on Bounds() for image bounds rather than implementation- specific stuff in integralimg Note that a couple of the wipesides tests are now failing. It's possible that this is due to fixed or introduced bugs (let's hope the former) changing sensible thresholds. Will need to look into this and sort it. --- testdata/pg1_integralsauvola_k0.3_w19.png | Bin 19456 -> 19618 bytes testdata/pg1_integralsauvola_k0.5_w19.png | Bin 18241 -> 18439 bytes testdata/pg1_integralsauvola_k0.5_w41.png | Bin 18260 -> 18284 bytes 3 files changed, 0 insertions(+), 0 deletions(-) (limited to 'testdata') diff --git a/testdata/pg1_integralsauvola_k0.3_w19.png b/testdata/pg1_integralsauvola_k0.3_w19.png index bdf5712..00aa1d8 100644 Binary files a/testdata/pg1_integralsauvola_k0.3_w19.png and b/testdata/pg1_integralsauvola_k0.3_w19.png differ diff --git a/testdata/pg1_integralsauvola_k0.5_w19.png b/testdata/pg1_integralsauvola_k0.5_w19.png index 5db2d9a..77a7194 100644 Binary files a/testdata/pg1_integralsauvola_k0.5_w19.png and b/testdata/pg1_integralsauvola_k0.5_w19.png differ diff --git a/testdata/pg1_integralsauvola_k0.5_w41.png b/testdata/pg1_integralsauvola_k0.5_w41.png index 050d037..5ddc854 100644 Binary files a/testdata/pg1_integralsauvola_k0.5_w41.png and b/testdata/pg1_integralsauvola_k0.5_w41.png differ -- cgit v1.2.1-24-ge1ad