Class SplitMergeLineFitSegment
java.lang.Object
boofcv.alg.shapes.polyline.splitmerge.SplitMergeLineFit
boofcv.alg.shapes.polyline.splitmerge.SplitMergeLineFitSegment
@Deprecated public class SplitMergeLineFitSegment extends SplitMergeLineFit
Deprecated.
Implementation of
SplitMergeLineFit
for lists in which the end points are not connected.-
Field Summary
Fields inherited from class boofcv.alg.shapes.polyline.splitmerge.SplitMergeLineFit
abortSplits, changed, contour, line, maxIterations, minimumSideLength, minimumSideLengthPixel, point2D, splits, toleranceFractionSq
-
Constructor Summary
Constructors Constructor Description SplitMergeLineFitSegment(double splitFraction, ConfigLength minimumSplit, int maxIterations)
Deprecated. -
Method Summary
Modifier and Type Method Description boolean
_process(List<Point2D_I32> list)
Deprecated.protected boolean
mergeSegments()
Deprecated.Merges lines together which have an acute angle less than the threshold.protected int
selectSplitBetween(int indexStart, int indexEnd)
Deprecated.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)
Deprecated.Recursively splits pixels.protected boolean
splitSegments()
Deprecated.Splits a line in two if there is a paint that is too far awayMethods inherited from class boofcv.alg.shapes.polyline.splitmerge.SplitMergeLineFit
getAbortSplits, process, setAbortSplits, setMaxIterations, setSplitFraction, splitThresholdSq
-
Constructor Details
-
SplitMergeLineFitSegment
public SplitMergeLineFitSegment(double splitFraction, ConfigLength minimumSplit, int maxIterations)Deprecated.
-
-
Method Details
-
_process
Deprecated.- Specified by:
_process
in classSplitMergeLineFit
-
splitPixels
protected void splitPixels(int indexStart, int indexStop)Deprecated.Recursively splits pixels. Used in the initial segmentation. Only split points between the two ends are added -
splitSegments
protected boolean splitSegments()Deprecated.Splits a line in two if there is a paint that is too far away- Returns:
- true for change
-
selectSplitBetween
protected int selectSplitBetween(int indexStart, int indexEnd)Deprecated.Finds the point between indexStart and the end point which is the greater distance from the line (set up prior to calling). Returns the index if the distance is less than tolerance, otherwise -1 -
mergeSegments
protected boolean mergeSegments()Deprecated.Merges lines together which have an acute angle less than the threshold.- Returns:
- true the list being changed
-