Documentation of 'georegression.fitting.ellipse.ClosestPointEllipseAngle_F32' Java class
ClosestPointEllipseAngle_F32
georegression.fitting.ellipse

Class ClosestPointEllipseAngle_F32



  • public class ClosestPointEllipseAngle_F32
    extends java.lang.Object
    Finds the closest point on an ellipse to a point. Point is first put into the ellipse's coordinate system. Then newton's method is used to find the solution. The following parameterization is used: (x,y) = a*cos(t) + b*sin(t). For the center a point is arbitrarily selected.
    • Constructor Detail

      • ClosestPointEllipseAngle_F32

        public ClosestPointEllipseAngle_F32(float tol,
                                            int maxIterations)
        Specifies convergence criteria
        Parameters:
        tol - Convergence tolerance. Try 1e-8
        maxIterations - Maximum number of iterations. Try 100
    • Method Detail

      • setEllipse

        public void setEllipse(EllipseRotated_F32 ellipse)
        Specifies the ellipse which point distance is going to be found from
        Parameters:
        ellipse - Ellipse description
      • process

        public void process(Point2D_F32 point)
        Find the closest point on the ellipse to the specified point. To get the solution call getClosest()
        Parameters:
        point - Point which it is being fit to
      • getTheta

        public float getTheta()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.