USAGE: removelines [ ..] converts an imagefile to a binary image with suppression of lines commencing at the corners of the image. Black lines and text on white/grey background is expected. USAGE: removelines - writes explanation of removelines to stdout. USAGE: removelines writes the number of pixels in below the threshold to stdout. KEY VALUE DESCRIPTION -c[orner] length of corner, fraction of width or height. Default: 0.250 Max. 0.990 -d[ilate] dilate, make black text leaner. Default: 2 . -d[ilate] - erode, make black text fatter. -e[stimate] /// four points for estimation of threshold Default: 0.250/0.250/0.750/0.750 as fraction of image width and height. -g[aussian] smooth image with kernelsize 2*+1 before saving. before saving. -h[eight] [-] scaling to height=[ and flipping]. -i[nterpolation] used for scaling. -m[ove] / scroll image. -r[otate] // rotate image, rotationcenter as fraction of imagesize, +ve angle is CW. -s[cale] arbitrary scaling[ and flipping]. Default: 3.0 -s[cale] [-]/[-] anamorph scaling[ and flipping]. -t[hreshold] convert pixels below to black, otherwise to white. Estimated by default. -t[hreshold] - add -ve value to estimated threshold. Default: -20.000 -w[idth] [-] scaling to width=[ and flipping]. -w[xh] [-]/[-] anamorph scaling[ and flipping]. INTERPOLATION: a[rea] CV_INTER_AREA - resampling using pixel area relation. c[ubic] CV_INTER_CUBIC - bicubic interpolation. l[inear] CV_INTER_LINEAR - bilinear interpolation (used by default). n[earn] CV_INTER_NN - nearest-neighbor interpolation. USING: OpenCV version 1.1.0 (1.1.0) Copyright (C) 2011 by Harm J. Schoonhoven Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.