IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Line2dIntersectionEstimator.h
1 // Line2dIntersectionEstimator.h:
3 // ------------------------------
4 //
25 
26 #ifndef __IPSDKGEOMETRY_LINE2DINTERSECTIONESTIMATOR_H__
27 #define __IPSDKGEOMETRY_LINE2DINTERSECTIONESTIMATOR_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_X)
48 
50  (eEP_Y)
51 
53  (eEP_W)
54  )
55 
56 
57  static const ipUInt32 g_parameterSize = eEstimParams::size;
58 
61 
63  (eDT_Theta)
64 
66  (eDT_Rho)
67  )
68 
70  static const ipUInt32 g_dataSize = eDataType::size;
71 
72 public:
78 
79 // methods
80 public:
81 
82 
83 protected:
86  BoolResult processEstimation(const math::DataSet& dataSet,
87  math::ParameterType& estimParams);
88 
91  BoolResult processResiduals(const math::DataSet& dataSet,
92  const math::ParameterType& estimParams,
93  math::ResidualsSet& residualsSet) const;
94 
95 // attributes
96 protected:
97 
98 };
99 
102 
103 } // end of namespace geom
104 } // end of namespace ipsdk
105 
106 #endif // __IPSDKGEOMETRY_LINE2DINTERSECTIONESTIMATOR_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.
std::vector< DataType > DataSet
collection of data associated to estimation
Definition: EstimationTypes.h:67
Definition of import/export macro for library.
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
eEstimParams
Definition: Line2dIntersectionEstimator.h:46
eDataType
Definition: Line2dIntersectionEstimator.h:62
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
Class allowing to estimate a intersection point 2d from a data set of 2d lines.
Definition: Line2dIntersectionEstimator.h:39
#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