IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Line2dEstimator.h
1 // Line2dEstimator.h:
3 // ------------------
4 //
25 
26 #ifndef __IPSDKGEOMETRY_LINE2DESTIMATOR_H__
27 #define __IPSDKGEOMETRY_LINE2DESTIMATOR_H__
28 
31 #include <IPSDKMath/Estimation/BaseEstimator.h>
32 
33 namespace ipsdk {
34 namespace geom {
35 
38 
40 {
41 // predefined public types
42 public:
45 
47  (eEP_Theta)
48 
50  (eEP_Rho)
51  )
52 
53 
54  static const ipUInt32 g_parameterSize = eEstimParams::size;
55 
58 
60  (eDT_X)
61 
63  (eDT_Y)
64  )
65 
66 
67  static const ipUInt32 g_dataSize = eDataType::size;
68 
69 public:
73  ~Line2dEstimator();
75 
76 // methods
77 public:
78 
79 protected:
82  BoolResult processEstimation(const math::DataSet& dataSet,
83  math::ParameterType& estimParams);
84 
87  BoolResult processResiduals(const math::DataSet& dataSet,
88  const math::ParameterType& estimParams,
89  math::ResidualsSet& residualsSet) const;
90 
91 // attributes
92 protected:
93 
94 };
95 
98 
99 } // end of namespace geom
100 } // end of namespace ipsdk
101 
102 #endif // __IPSDKGEOMETRY_LINE2DESTIMATOR_H__
Vector ParameterType
parameter type resulting from estimation
Definition: EstimationTypes.h:61
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Base class for parametric estimation from data set.
Definition: BaseEstimator.h:35
Predefined types for estimation 2d management.
eDataType
Definition: Line2dEstimator.h:60
std::vector< DataType > DataSet
collection of data associated to estimation
Definition: EstimationTypes.h:67
eEstimParams
Definition: Line2dEstimator.h:46
Definition of import/export macro for library.
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
Class allowing to estimate a line 2d from a data set of 2d pointsLine parameters are expressed in pol...
Definition: Line2dEstimator.h:39
Vector ResidualsSet
residuals type resulting from estimation
Definition: EstimationTypes.h:64
IPSDKMATH_API void processEstimation(const EstimationConfig &config, const EstimatorPtr &pEstimator, const DataSet &inputDataSet, EstimationResults &results)
function allowing to launch a robust estimation process
#define IPSDK_ENUM(enumTypeStr, enumSeq)
macro allowing to declare an enumerate for library
Definition: EnumMacros.h:26
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53