makepr(1)

NAME
makepr - create Primitive Rectangles in an image

SYNOPSIS
makepr [-options] in_file out_file [ out_file2 ]

DESCRIPTION
makepr reads a binary image and creates Primitive Rectangles. The Primitive Rectangle is the rectangle whose width is a constant (column width). See references for the detail of Primitive Rectangles. The file format of in_file is binary pbm(5). The primitive rectangles are written on out_file and out_file2, whose file format are d4file(4) ordinally. 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 option -image is specified, the rectangle image is written on out_file. The file format of out_file is binary pbm(5) in this case.

OPTIONS

-or Logical "OR" of black pixels is used at the creation of rectangles. (This is default.)

-and
    Logical "AND" of black pixels is used at the creation of rectangles.

-reverse
    Reverse black and white of the input image.

-cwid N
    Set the width of Primitive Rectangles to N. The default value is N=16.

-image
    Create image file instead of rectangle file.

-box
    Fill the inside of rectangle by black. Use this option with -image.

-vert
    Create the vertical Primitive Rectangles instead of normal horizontal ones.

-mvec
    Create both horizontal and vertical Primitive Rectangles concurrently. Horizontal and vertical rectangles are written on out_file and out_file2 respectively.

-d8 Create 8-dimensional (8-tuple) file. (This is experimental.)

-llim N
    Suppress writing Primitive Rectangles each of whose height is less than N. The default is N=1.

-ulim N
    Suppress writing Primitive Rectangles each of whose height is more than N. The default is N=32767.

SEE ALSO
pbm(5), d4file(4)

REFERENCES
"Robust and Fast Text-line Extraction Using Local Linearity of the Text-line" by Hideaki Goto and Hirotomo Aso, Trans. IEICE (D-II), Vol.J78-D-II, No.3, pp.465-473, March 1995. (In Japanese) Or its translated version, "Robust and Fast Text-line Extraction Using Local Linearity of the Text-line" by Hideaki Goto and Hirotomo Aso, Systems and Computers in Japan, Vol.26, No.13, pp.21-31, 1995, Scripta Technica, Inc.

AUTHOR
Copyright (C) 1995-1997 Hideaki Goto E-Mail: hgot@ecip.tohoku.ac.jp, hgot@aso.ecei.tohoku.ac.jp