public class SplitMergeLineFitSegment extends SplitMergeLineFit
SplitMergeLineFit for lists in which the end points are not connected.abortSplits, changed, contour, line, maxIterations, minimumSideLengthFraction, minimumSideLengthPixel, point2D, splits, toleranceFractionSq, work| Constructor and Description |
|---|
SplitMergeLineFitSegment(double splitFraction,
double minimumSplitFraction,
int maxIterations) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
mergeSegments()
Merges lines together which have an acute angle less than the threshold.
|
boolean |
process(java.util.List<georegression.struct.point.Point2D_I32> list)
Approximates the input list with a set of line segments
|
protected int |
selectSplitBetween(int indexStart,
int indexEnd)
Finds the point between indexStart and the end point which is the greater distance from the line
(set up prior to calling).
|
protected void |
splitPixels(int indexStart,
int indexStop)
Recursively splits pixels.
|
protected boolean |
splitSegments()
Splits a line in two if there is a paint that is too far away
|
getAbortSplits, getMinimumSideLengthFraction, getSplits, setAbortSplits, setMaxIterations, setMinimumSideLengthFraction, setSplitFraction, splitThresholdSqpublic SplitMergeLineFitSegment(double splitFraction,
double minimumSplitFraction,
int maxIterations)
public boolean process(java.util.List<georegression.struct.point.Point2D_I32> list)
SplitMergeLineFitprocess in class SplitMergeLineFitlist - Ordered list of connected points.protected void splitPixels(int indexStart,
int indexStop)
protected boolean splitSegments()
protected int selectSplitBetween(int indexStart,
int indexEnd)
protected boolean mergeSegments()