IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
SimilarityTransform2dEstimator.h
1 // SimilarityTransform2dEstimator.h:
3 // ---------------------------------
4 //
39 
40 #ifndef __IPSDKGEOMETRY_SIMILARITYTRANSFORM2DESTIMATOR_H__
41 #define __IPSDKGEOMETRY_SIMILARITYTRANSFORM2DESTIMATOR_H__
42 
45 #include <IPSDKMath/Estimation/BaseEstimator.h>
46 
47 namespace ipsdk {
48 namespace geom {
49 
52 
54 {
55 // predefined public types
56 public:
59 
61  (eEP_Scale)
62 
64  (eEP_Theta)
65 
67  (eEP_Tx)
68 
70  (eEP_Ty)
71  )
72 
73 
74  static const ipUInt32 g_parameterSize = eEstimParams::size;
75 
78 
80  (eDT_X1)
81 
83  (eDT_Y1)
84 
86  (eDT_X2)
87 
89  (eDT_Y2)
90  )
91 
93  static const ipUInt32 g_dataSize = eDataType::size;
94 
95 public:
101 
102 // methods
103 public:
104 
105 protected:
108  BoolResult processEstimation(const math::DataSet& dataSet,
109  math::ParameterType& estimParams);
110 
113  BoolResult processResiduals(const math::DataSet& dataSet,
114  const math::ParameterType& estimParams,
115  math::ResidualsSet& residualsSet) const;
116 
117 // attributes
118 protected:
119 
120 };
121 
124 
125 } // end of namespace geom
126 } // end of namespace ipsdk
127 
128 #endif // __IPSDKGEOMETRY_SIMILARITYTRANSFORM2DESTIMATOR_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
eEstimParams
Definition: SimilarityTransform2dEstimator.h:60
Predefined types for estimation 2d management.
std::vector< DataType > DataSet
collection of data associated to estimation
Definition: EstimationTypes.h:67
Class allowing to estimate a 2d similarity transformationWe compute a similarity transformation such ...
Definition: SimilarityTransform2dEstimator.h:53
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
eDataType
Definition: SimilarityTransform2dEstimator.h:78
#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