boofcv.alg.shapes.polyline
Class SplitMergeLineFitLoop
- java.lang.Object
-
- boofcv.alg.shapes.polyline.SplitMergeLineFit
-
- boofcv.alg.shapes.polyline.SplitMergeLineFitLoop
-
public class SplitMergeLineFitLoop extends SplitMergeLineFit
Implementation ofSplitMergeLineFitfor looped lists of points. The beginning and end of the list are assumed to be connected. An additional check is done in the start to find two points which are far apart.
-
-
Constructor Summary
Constructors Constructor and Description SplitMergeLineFitLoop(double splitFraction, double minimumSplitFraction, int maxIterations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanprocess(java.util.List<Point2D_I32> contour)Approximates the input list with a set of line segments-
Methods inherited from class boofcv.alg.shapes.polyline.SplitMergeLineFit
getAbortSplits, getMinimumSideLengthFraction, getSplits, setAbortSplits, setMaxIterations, setMinimumSideLengthFraction, setSplitFraction
-
-
-
-
Constructor Detail
-
SplitMergeLineFitLoop
public SplitMergeLineFitLoop(double splitFraction, double minimumSplitFraction, int maxIterations)
-
-
Method Detail
-
process
public boolean process(java.util.List<Point2D_I32> contour)
Description copied from class:SplitMergeLineFitApproximates the input list with a set of line segments- Specified by:
processin classSplitMergeLineFit- Parameters:
contour- Ordered list of connected points.- Returns:
- true if it could fit a polygon to the points or false if not
-
-
DataMelt 3.0 © DataMelt by jWork.ORG