USAGE: cropimage . [- ..] copy rectangle from image to image. Pixels in rectangle that fall outside or are ignored. KEY VALUE DESCRIPTION -a[spect] force aspectratio in interactive mode. -b[ackground] // background fill colour. Default: 46/46/46. -c[olour] g[rey] is monochrome i.s.o. full colour. -d[otted] [/] dotted lines. Default: 3/1 -d[otted] -[/] dotted lines without trackbar. -d[otted] 0 no dotted lines. -f[ixed] / force cropped size in interactive mode. -f[ixed] /0 force cropped width in interactive mode. -f[ixed] 0/ force cropped height in interactive mode. -f[ixed] 0/0 allow any size of cropped image. Default. -k[nown] show text corresponding with . -m[ultiple] restrict size in interactive mode. -r[ect] /// rectangle in to be copied. -r[ect] /// rectangle in to be copied. -R[ECT] /// rectangle in to be copied. Default: 0/0//. -s[how] [-] adjust rectangle interactively with full scale preview [shown as CCW]. -S[HOW] [-] adjust rectangle interactively without preview [shown as CCW]. -t[ilt] interactive tilt +/- degrees, 2 dotted lines are shown for alignment. -u[pperleft] / position of rectangle in . Default: 0/0. -v[erbose] d[ebug] write details and parameters to stdout. -v[erbose] s[tdout] write progress and parameters to stdout. -v[erbose] e[rr] write progress and parameters to stderr. -w[xh] / size of . -w[xh] x size of . -w[xh] c[ropped] adjust size of to cropped image. Default: /. In interactive mode adjust rectangle with left- and right-mousebutton. Press = to save rectangle in specified bitmap with size). Press SPACE to save rectangle in specified bitmap with cropped size). Press 0..9a..fA..Z to save rectangle as is in ".". Press N,E,S,W move selected upperleft a (multiple) pixel(s). Press c move selected upperleft to (0,0) corner. Press t move selected upperleft to top (y=0). Press n,e,s,w move selected lowerright a (multiple) pixel(s). Press b move selected lowerright to (max-x,max-y). Fixed width and/or height is preserved. Press h or ? to write this help info to stdout. Press q to quit without image saving. Press x to write rectangle size to stdout. Press y to write 10x10 matrix of luminance values size to stdout. USING: OpenCV version 1.1.0 (1.1.0) While every precaution has been taken in the preparation of cropimage, the author will not assume any responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. VERSION: May 31 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.