summaryrefslogtreecommitdiff
path: root/wipesides.go
AgeCommit message (Collapse)Author
2020-07-13Improve wiper algorithmNick White
Several changes made to wiper to improve things: - If findbestedge finds more than one 'best' line, choose the middle one, rather than the first. - findbestedge selects the line with the lowest number of black pixels, rather than (erroneously) the highest. - Added a findedgesOutin() function, which finds edges like findedges() but looking from the outside edges of the image inwards, rather than from the inside out. More testing is needed to decide whether this is useful; initial testing showed very little difference, but that was limited to lightly binarised images. This is in use by VWipe() at present, where worries about several gutters thanks to the edges of other pages aren't present. - Added separate vwsize, vthresh and vmin arguments to WipeFile so that vertical wiping can have different parameters (which is very important for good quality vertical wiping). - Updated wiping tests. - Rewrote the wipe cmd to use WipeFile() directly.
2020-05-04Have wipefile do vertical as well as horizontal wipingv0.1.3Nick White
2020-03-03Add experimental vertical wiping feature to wiperNick White
2020-02-26Fix import lines to use new integralimg locationNick White
2020-02-26Add README and GPLv3 LICENSE and mention license in every source fileNick White
2019-10-08Continue separating the repository; remove all but preproc, and move ↵Nick White
integralimg package under it