IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Plan3dEstimator.h
1 // Plan3dEstimator.h:
3 // ------------------
4 //
30 
31 #ifndef __IPSDKGEOMETRY_PLAN3DESTIMATOR_H__
32 #define __IPSDKGEOMETRY_PLAN3DESTIMATOR_H__
33 
36 #include <IPSDKMath/Estimation/BaseEstimator.h>
37 
38 namespace ipsdk {
39 namespace geom {
40 
43 
45 {
46 // predefined public types
47 public:
50 
52  (eEP_Theta)
53 
55  (eEP_Phi)
56 
58  (eEP_Rho)
59  )
60 
61 
62  static const ipUInt32 g_parameterSize = eEstimParams::size;
63 
66 
68  (eDT_X)
69 
71  (eDT_Y)
72 
74  (eDT_Z)
75  )
76 
78  static const ipUInt32 g_dataSize = eDataType::size;
79 public:
83  ~Plan3dEstimator();
85 
86 // methods
87 public:
91  template <typename T>
92  static math::DataSet toDataSet(const std::vector<Point3d<T> >& ptColl);
93  template <typename T>
94  static math::DataSet toDataSet(const std::vector<Point3dData<T> >& ptColl);
96 
97 protected:
100  BoolResult processEstimation(const math::DataSet& dataSet,
101  math::ParameterType& estimParams);
102 
105  BoolResult processResiduals(const math::DataSet& dataSet,
106  const math::ParameterType& estimParams,
107  math::ResidualsSet& residualsSet) const;
108 
109 // attributes
110 protected:
111 
112 };
113 
116 
117 } // end of namespace geom
118 } // end of namespace ipsdk
119 
120 #endif // __IPSDKGEOMETRY_PLAN3DESTIMATOR_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
Point class associated to cartesian 3d coordinates.
Definition: GeometryEntity3dTypes.h:29
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
IPSDKGEOMETRY_API math::DataSet toDataSet(const std::vector< Point2d< T > > &ptColl)
function allowing to convert a point collection to an estimation data set
eEstimParams
Definition: Plan3dEstimator.h:51
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.
Class allowing to estimate a plan 3d from a data set of 3d pointsPlan parameters are expressed in sph...
Definition: Plan3dEstimator.h:44
eDataType
Definition: Plan3dEstimator.h:67
STL namespace.
Lightweight structure used to store Point3d data.
Definition: GeometryEntity3dTypes.h:27
#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