IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Circle2dEstimator.h
1 // Circle2dEstimator.h:
3 // --------------------
4 //
16 
17 #ifndef __IPSDKGEOMETRY_CIRCLE2DESTIMATOR_H__
18 #define __IPSDKGEOMETRY_CIRCLE2DESTIMATOR_H__
19 
22 #include <IPSDKMath/Estimation/BaseEstimator.h>
23 
24 namespace ipsdk {
25 namespace geom {
26 
29 
31 {
32 // predefined public types
33 public:
36 
38  (eEP_CenterX)
39 
41  (eEP_CenterY)
42 
44  (eEP_Radius)
45  )
46 
47 
48  static const ipUInt32 g_parameterSize = eEstimParams::size;
49 
52 
54  (eDT_X)
55 
57  (eDT_Y)
58  )
59 
61  static const ipUInt32 g_dataSize = eDataType::size;
62 
63 public:
69 
70 // methods
71 public:
72 
73 protected:
76  BoolResult processEstimation(const math::DataSet& dataSet,
77  math::ParameterType& estimParams);
78 
81  BoolResult processResiduals(const math::DataSet& dataSet,
82  const math::ParameterType& estimParams,
83  math::ResidualsSet& residualsSet) const;
84 
85 // attributes
86 protected:
87 
88 };
89 
92 
93 } // end of namespace geom
94 } // end of namespace ipsdk
95 
96 #endif // __IPSDKGEOMETRY_CIRCLE2DESTIMATOR_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.
eDataType
Definition: Circle2dEstimator.h:53
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
eEstimParams
Definition: Circle2dEstimator.h:37
Class allowing to estimate a circle 2d from a data set of 2d contour points.
Definition: Circle2dEstimator.h:30
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