Interface SplitSelector

All Known Implementing Classes:
MaximumLineDistance

public interface SplitSelector
Interface for splitting a line along a contour.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compareScore(double scoreA, double scoreB)
    Compares two scores against each other
    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.
  • 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 order
      indexA - Start of line
      indexB - End of line
      results - Where to split
    • compareScore

      int compareScore(double scoreA, double scoreB)
      Compares two scores against each other
      Parameters:
      scoreA - Score
      scoreB - Score
      Returns:
      1 = scoreA is best, 0 both equal, -1 scoreB is best