georegression.fitting.line
Class FitLine_F32
- java.lang.Object
-
- georegression.fitting.line.FitLine_F32
-
public class FitLine_F32 extends java.lang.ObjectFinds the best file line given a set of observations.
-
-
Constructor Summary
Constructors Constructor and Description FitLine_F32()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static LinePolar2D_F32polar(java.util.List<Point2D_F32> points, float[] weights, LinePolar2D_F32 ret)Computes the weighted best fit line to the set of points using the polar line equation.static LinePolar2D_F32polar(java.util.List<Point2D_F32> points, LinePolar2D_F32 ret)Computes the unweighted best fit line to the set of points using the polar line equation.
-
-
-
Method Detail
-
polar
public static LinePolar2D_F32 polar(java.util.List<Point2D_F32> points, 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.ret- Storage for the line. If null a new line will be declared.- Returns:
- Best fit line
-
polar
public static LinePolar2D_F32 polar(java.util.List<Point2D_F32> points, float[] weights, LinePolar2D_F32 ret)
Computes the weighted 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.weights- Weight for each point. weights[i] ≥ 0ret- Storage for the line. If null a new line will be declared.- Returns:
- Best fit line. or null if sum of weights is zero
-
-
DataMelt 3.0 © DataMelt by jWork.ORG