Interface FitShapeToPoints_F32<Point,​Shape>

  • All Superinterfaces:
    FitShapeToPoints<Point,​Shape>
    All Known Implementing Classes:
    FitConicA_F32, FitConicAtA_F32

    public interface FitShapeToPoints_F32<Point,​Shape>
    extends FitShapeToPoints<Point,​Shape>
    General interface for fitting a shape to a set of points. Similar to ModelFitter interface but is more specific. No initial estimate and weights can be specified.
    • Method Detail

      • process

        boolean process​(java.util.List<Point> points,
                        float[] weights,
                        Shape output)
        Fits the shape to the points by minimizing some metric.
        Parameters:
        points - (Input) points
        weights - (Input) Weight of each point.
        output - (Output) found shape
        Returns:
        true if successful or false if it failed