8#ifndef META_OCEAN_GEOMETRY_NON_LINEAR_OPTIMIZATION_LINE_H
9#define META_OCEAN_GEOMETRY_NON_LINEAR_OPTIMIZATION_LINE_H
This class implements a base class for all indexed-based accessors allowing a constant reference acce...
Definition Accessor.h:241
EstimatorType
Definition of individual robust estimator types.
Definition Estimator.h:34
@ ET_SQUARE
The standard square error estimator (L2).
Definition Estimator.h:52
This class implements the basic functions for least square or robust optimization algorithms for non ...
Definition NonLinearOptimization.h:33
This class implements least square or robust optimization algorithms optimizing lines.
Definition NonLinearOptimizationLine.h:27
static bool optimizeLine(const Line2 &line, const ConstIndexedAccessor< Vector2 > &pointAccessor, Line2 &optimizedLine, const unsigned int iterations=20u, const Estimator::EstimatorType estimator=Estimator::ET_SQUARE, Scalar lambda=Scalar(0.001), const Scalar lambdaFactor=Scalar(5), Scalar *initialError=nullptr, Scalar *finalError=nullptr)
Optimizes a 2D line by reducing the distance between image points and their projected line points.
LineT2< Scalar > Line2
Definition of the Line2 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION either with single o...
Definition Line2.h:28
float Scalar
Definition of a scalar type.
Definition Math.h:129
Namespace of the Geometry library.
Definition AbsoluteTransformation.h:20
The namespace covering the entire Ocean framework.
Definition Accessor.h:15