georegression.fitting.ellipse
Class ClosestPointEllipseAngle_F32
- java.lang.Object
-
- georegression.fitting.ellipse.ClosestPointEllipseAngle_F32
-
public class ClosestPointEllipseAngle_F32 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_F32(float tol, int maxIterations)Specifies convergence criteria
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Point2D_F32getClosest()floatgetTheta()voidprocess(Point2D_F32 point)Find the closest point on the ellipse to the specified point.voidsetEllipse(EllipseRotated_F32 ellipse)Specifies the ellipse which point distance is going to be found from
-
-
-
Constructor Detail
-
ClosestPointEllipseAngle_F32
public ClosestPointEllipseAngle_F32(float 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_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 callgetClosest()- Parameters:
point- Point which it is being fit to
-
getClosest
public Point2D_F32 getClosest()
-
getTheta
public float getTheta()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG