makecr(1)makecr(1)NAMEmakecr - create circumscribing rectangles in an image
SYNOPSISmakecr [-options] in_file | stdin out_file
DESCRIPTIONmakecr finds connected components of black pixels in a binary image,
and creates circumscribing rectangles.
The file format of in_file is binary pbm(5). The circumscribing rec‐
tangles are written on out_file, whose file format is d4file(4). Each
rectangle is denoted by a 4-tuple, the position of the left-top corner,
the width, and the height of the rectangle.
If the string "stdin" is passed instead of in_file, makecr reads image
from standard input.
OPTIONS-bstr N
Add N black pixels to both ends of each horizontal black run
before finding connected components.
-rls N Apply Runlength Smoothing Algorithm. The horizontal white runs
which is shorter than N pixels are filled with black pixels
before finding connected components.
SEE ALSOpbm(5), d4file(4)AUTHOR
Copyright (C) 1994-1997 Hideaki Goto
E-Mail: hgot@ecip.tohoku.ac.jp, hgot@aso.ecei.tohoku.ac.jp
Feb. 1997 makecr(1)