IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Ellipse2dEstimator.h
1 // Ellipse2dEstimator.h:
3 // ---------------------
4 //
17 
18 #ifndef __IPSDKGEOMETRY_ELLIPSE2DESTIMATOR_H__
19 #define __IPSDKGEOMETRY_ELLIPSE2DESTIMATOR_H__
20 
23 #include <IPSDKMath/Estimation/BaseEstimator.h>
24 
25 namespace ipsdk {
26 namespace geom {
27 
30 
32 {
33 // predefined public types
34 public:
37 
39  (eEP_CenterX)
40 
42  (eEP_CenterY)
43 
45  (eEP_MajorRadius)
46 
48  (eEP_MinorRadius)
49 
51  (eEP_Theta)
52  )
53 
54 
55  static const ipUInt32 g_parameterSize = eEstimParams::size;
56 
59 
61  (eDT_X)
62 
64  (eDT_Y)
65  )
66 
68  static const ipUInt32 g_dataSize = eDataType::size;
69 
70 public:
76 
77 // methods
78 public:
79 
80 protected:
83  BoolResult processEstimation(const math::DataSet& dataSet,
84  math::ParameterType& estimParams);
85 
89  BoolResult processResiduals(const math::DataSet& dataSet,
90  const math::ParameterType& estimParams,
91  math::ResidualsSet& residualsSet) const;
92 
93 // attributes
94 protected:
95 
96 };
97 
100 
101 } // end of namespace geom
102 } // end of namespace ipsdk
103 
104 #endif // __IPSDKGEOMETRY_ELLIPSE2DESTIMATOR_H__
Vector ParameterType
parameter type resulting from estimation
Definition: EstimationTypes.h:61
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
eDataType
Definition: Ellipse2dEstimator.h:58
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
Class allowing to estimate an ellipse 2d from a data set of 2d contour points.
Definition: Ellipse2dEstimator.h:31
Definition of import/export macro for library.
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
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
eEstimParams
Definition: Ellipse2dEstimator.h:38
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53