LINESEGS
Section: User Commands (1)
Updated: 1 May 1990
Index
Return to Main Contents
NAME
linesegs - creates straight line segments from a thinned binary image
SYNOPSIS
linesegs
[-l N][-s R][-f[F] fname] < inseq > outseq
DESCRIPTION
linesegs takes a binary HIPS image that consists of thin lines,
and combines the pixels into straight line segments with at least a minimum
length of `N'. The output
is an image showing the straight line segments, and an ASCII file
of endpoints and/or line lengths and angles.
This program expects the input image to be thinned, with no gaps
in the lines greater than one pixel in size. To insure that the input image
is correct, I suggest doing the following filter before using
this program:
bthin < in_image | bclean2 | fill_holes -e > out_image
There are two arguments which control the way in which the pixels
are aggregated to a straight line segment. In the first part of the
algorithm, lines are located in the image, and followed, counting the
number of pixels it finds. At every N pixels (the -l argument), the
location is added to a list of endpoints. After the entire line
has been followed,
a second pass is made, checking the slope of adjacent lines. If the
difference in slopes between the two line segments is less than
R (the -s argument), the lines are combined into one line segment.
OPTIONS
- [-l N]
-
minimum line segment size N ( default = 10)
- [-s R]
-
combine lines if difference in slope < R (default = 1.5)
- [-f line file name]
-
create file with angles and lengths of lines.
this file can be used as input to programs such as Gnuplot.
- [-F line file name]
-
file with headers and line endpoint locations.
AUTHOR
Brian Tierney, LBL email: bltierney@lbl.gov
SEE ALSO
bclean2(1), bthin(1), fill_holes(1)
BUGS
Report to Brian Tierney.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- AUTHOR
-
- SEE ALSO
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 01:45:51 GMT, December 05, 2024