USAGE: papertape -l[ine] /// [ ..] USAGE: papertape -s[ave] [ ..] USAGE: papertape -t[racking] / // / / [ ..] Note: xl<=xr and imageheight>ybot>yprint>ytop>0 are obligatory. Preprocess images with jpegtran as required. PROCEDURE: Load image. Terminate on failure. Create binary image ( > && > && > ). Erode or dilate binary image. Option -l[ine]: examines pixels on the line (,) (,). writes digits 0, 1 or 8 if the point is situated outside the image followed by number to . By default when the array is changed. Option -s[ave]: Save preprocessed image as and terminate. Option -t[racking]: Write number of changes in columns of rectangle (,)/(,) to as numbers. Count pixel differences between current image and previous image shifted by effectively dx=- ... + and dy=1 ... in shifted rectangle (,)/(,). Sort the resulting array to find the best fit. This gives a upper value for ymatch. Use the protocol for option -l to print pixel values for "new" y values with line /y//y. Upperleft=(0,0). All s should have the same size. Image n-1 n y=0 | | | | y=0 | | | | | | | | | | | --- | ytop-yscan | | | | | | | top | ^ | | / | | | papertape movement ytop | top | / |done | ymatch | | | / |print| yprint |done | / |print| yprint | | | | | | | bot | | | / | | ybot | bot | / | --- | ybot | | | | xl+dx xr+dx xl xr All options: terminate or enter next cycle. may be a single imagefile (for -l,-s) of contain "%[0][]d". KEY VALUE DESCRIPTION AND DEFAULTS -e[osion] [-] erode [dilate] binary image. Default: 1 -f[irst] Default: 0 -l[evel] // Default: 100.50/100.5/100.5 -m[ax] last file to read. Default: all. -n[point] at least 2. Default: 65 -n[point] 0 set to -+1. -N[point] 0| idem, but write every line. -w[riteto] write to Default: stdout. KEY for option -t[racking] omly: -c[hanges] y[es]|n[o] write number of changes in columns of rectangle. Default: yes -d[ebug] write first of sorted array delta[].count to . -d[ebug] -1 write offsets d(x,y). -y[value] y[es]|n[o] write y-value to . Default: no Return values: 0 Ok, 1 too few args, 2 syntax-, 3 file-, 4 runtime-error. USING: OpenCV version 1.1.0 (1.1.0) VERSION: Jun 24 2014 Copyright (C) 2014 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.