georegression.fitting.ellipse
Class ClosestPointEllipseAngle_F64
- java.lang.Object
-
- georegression.fitting.ellipse.ClosestPointEllipseAngle_F64
-
public class ClosestPointEllipseAngle_F64 extends java.lang.ObjectFinds 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 Summary
Constructors Constructor and Description ClosestPointEllipseAngle_F64(double tol, int maxIterations)Specifies convergence criteria
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Point2D_F64getClosest()doublegetTheta()voidprocess(Point2D_F64 point)Find the closest point on the ellipse to the specified point.voidsetEllipse(EllipseRotated_F64 ellipse)Specifies the ellipse which point distance is going to be found from
-
-
-
Constructor Detail
-
ClosestPointEllipseAngle_F64
public ClosestPointEllipseAngle_F64(double tol, int maxIterations)Specifies convergence criteria- Parameters:
tol- Convergence tolerance. Try 1e-8maxIterations- Maximum number of iterations. Try 100
-
-
Method Detail
-
setEllipse
public void setEllipse(EllipseRotated_F64 ellipse)
Specifies the ellipse which point distance is going to be found from- Parameters:
ellipse- Ellipse description
-
process
public void process(Point2D_F64 point)
Find the closest point on the ellipse to the specified point. To get the solution callgetClosest()- Parameters:
point- Point which it is being fit to
-
getClosest
public Point2D_F64 getClosest()
-
getTheta
public double getTheta()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG