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.
  • Constructor Details

    • SplitMergeLineFitSegment

      public SplitMergeLineFitSegment(double splitFraction, ConfigLength minimumSplit, int maxIterations)
      Deprecated.
  • Method Details

    • _process

      public boolean _process(List<Point2D_I32> list)
      Deprecated.
      Specified by:
      _process in class SplitMergeLineFit
    • 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