Operation: trace lines

trace lines operation

Author:

Volker Bäcker

Example

input image    input points
result image

Description

The operation traces lines in a possibly noisy image, starting from a point on each line. A line can have gaps. Only lines with a given maximum angle against the horizontal are taken  into account. Only lines with minimal length and a minimum distance from the image borders are taken into account.

Options

options
min stick length: To determine the next direction and to evaluate the stop condition a line segment of this length will be used. The tracing stops when the intensity under the segment of
this length in the best next direction is smaller than in the direction perpendicular to the next best direction.
max angle: The next direction is searched within the angles -max angle to +max angle around the x-axis..
distance border: The minimum distance from the border.
min segment length: The minimum length of the line segments taken into account.

Parameter

inputImage (ImagePlus) : A 2-dimensional input image.
startPoints (ResultsTable): A results table containing the start points for the tracing in the columns X and Y.

Results

result (ImagePlus): An image showing the lines found.
resultLines (Vector of Line2D ): A list of the lines found.