Interface SplitSelector
- All Known Implementing Classes:
MaximumLineDistance
public interface SplitSelector
Interface for splitting a line along a contour.
-
Method Summary
Modifier and TypeMethodDescriptionint
compareScore
(double scoreA, double scoreB) Compares two scores against each othervoid
selectSplitPoint
(List<Point2D_I32> contour, int indexA, int indexB, boofcv.alg.shapes.polyline.splitmerge.PolylineSplitMerge.SplitResults results) Selects the best point to split a long along a contour.
-
Method Details
-
selectSplitPoint
void selectSplitPoint(List<Point2D_I32> contour, int indexA, int indexB, boofcv.alg.shapes.polyline.splitmerge.PolylineSplitMerge.SplitResults results) Selects the best point to split a long along a contour. Start and end locations are always traversed in the positive direction along the contour.- Parameters:
contour
- List of points along a contour in orderindexA
- Start of lineindexB
- End of lineresults
- Where to split
-
compareScore
int compareScore(double scoreA, double scoreB) Compares two scores against each other- Parameters:
scoreA
- ScorescoreB
- Score- Returns:
- 1 = scoreA is best, 0 both equal, -1 scoreB is best
-