Package georegression.fitting.line
Class FitLine_I32
java.lang.Object
georegression.fitting.line.FitLine_I32
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LinePolar2D_F32polar(List<Point2D_I32> points, int start, int length, @Nullable LinePolar2D_F32 ret) Computes the unweighted best fit line to the set of points using the polar line equation.static LinePolar2D_F64polar(List<Point2D_I32> points, int start, int length, @Nullable LinePolar2D_F64 ret) Computes the unweighted best fit line to the set of points using the polar line equation.
-
Constructor Details
-
FitLine_I32
public FitLine_I32()
-
-
Method Details
-
polar
public static LinePolar2D_F32 polar(List<Point2D_I32> points, int start, int length, @Nullable @Nullable LinePolar2D_F32 ret) Computes the unweighted best fit line to the set of points using the polar line equation. The solution is optimal in the Euclidean sense, see [1] for more details.
[1] K. Arras, R. Siegwart, "Feature Extraction and Scene Interpretation for Map-Based Navigation and Map Building" Proc. SPIE, Mobile Robotics XIII, Vol. 3210, 1997
- Parameters:
points- Set of points on the line.start- First index in the listlength- number of variables used in the listret- Storage for the line. If null a new line will be declared.- Returns:
- Best fit line
-
polar
public static LinePolar2D_F64 polar(List<Point2D_I32> points, int start, int length, @Nullable @Nullable LinePolar2D_F64 ret) Computes the unweighted best fit line to the set of points using the polar line equation. The solution is optimal in the Euclidean sense, see [1] for more details.
[1] K. Arras, R. Siegwart, "Feature Extraction and Scene Interpretation for Map-Based Navigation and Map Building" Proc. SPIE, Mobile Robotics XIII, Vol. 3210, 1997
- Parameters:
points- Set of points on the line.ret- Storage for the line. If null a new line will be declared.- Returns:
- Best fit line
-