IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Sphere3dEstimator.h
1 // Sphere3dEstimator.h:
3 // --------------------
4 //
16 
17 #ifndef __IPSDKGEOMETRY_SPHERE3DESTIMATOR_H__
18 #define __IPSDKGEOMETRY_SPHERE3DESTIMATOR_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_CenterZ)
45 
47  (eEP_Radius)
48  )
49 
50 
51  static const ipUInt32 g_parameterSize = eEstimParams::size;
52 
55 
57  (eDT_X)
58 
60  (eDT_Y)
61 
63  (eDT_Z)
64  )
65 
67  static const ipUInt32 g_dataSize = eDataType::size;
68 
69 public:
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_SPHERE3DESTIMATOR_H__
Vector ParameterType
parameter type resulting from estimation
Definition: EstimationTypes.h:61
Class allowing to estimate a sphere 3d from a data set of 3d contour points.
Definition: Sphere3dEstimator.h:30
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Base class for parametric estimation from data set.
Definition: BaseEstimator.h:35
std::vector< DataType > DataSet
collection of data associated to estimation
Definition: EstimationTypes.h:67
eEstimParams
Definition: Sphere3dEstimator.h:37
Definition of import/export macro for library.
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
eDataType
Definition: Sphere3dEstimator.h:55
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
Predefined types for estimation 3d management.
#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