IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
LMSRobustEstimator.h
1 // LMSRobustEstimator.h:
3 // ---------------------
4 //
16 
17 #ifndef __IPSDKMATH_LMSROBUSTESTIMATOR_H__
18 #define __IPSDKMATH_LMSROBUSTESTIMATOR_H__
19 
20 // suppression warnings
21 // warning C4251: 'ipsdk::math::LMSRobustEstimator::_curSquaredResiduals': class 'boost::numeric::ublas::vector<ipsdk::ipReal64,boost::numeric::ublas::unbounded_array<ipsdk::ipReal64,std::allocator<T>>>' needs to have dll-interface to be used by clients of class 'ipsdk::math::LMSRobustEstimator'
22 #pragma warning (push)
23 #pragma warning (disable : 4251)
24 
25 #include <IPSDKMath/Estimation/BaseRobustEstimator.h>
26 
27 namespace ipsdk {
28 namespace math {
29 
32 
34 {
35 public:
41 
42 // methods
43 public:
45  ipReal64 getMaxOutlierRatio() const;
46 
52  void init(const EstimatorPtr& pEstimator);
53 
54 protected:
57  ipReal64 computeScore(const ResidualsSet& curResiduals);
58 
62  ipReal64 computeOutlierThreshold(const ipReal64 bestScore,
63  const ipUInt32 nbData,
64  const ipUInt32 nbMinRequestedData) const;
65 
67  void clearDerived();
68 
69 // attributes
70 protected:
73 };
74 
77 
78 } // end of namespace math
79 } // end of namespace ipsdk
80 
81 #pragma warning (pop)
82 
83 #endif // __IPSDKMATH_LMSROBUSTESTIMATOR_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
#define IPSDKMATH_API
Import/Export macro for library IPSDKMath.
Definition: IPSDKMathExports.h:27
Base class for parametric robust estimation from data set.
Definition: BaseRobustEstimator.h:36
boost::shared_ptr< BaseEstimator > EstimatorPtr
shared pointer to BaseEstimator class
Definition: EstimationTypes.h:76
Vector ResidualsSet
residuals type resulting from estimation
Definition: EstimationTypes.h:64
Robust Least Mean Square estimatorThis algorithm do not request any threshold for model estimation...
Definition: LMSRobustEstimator.h:33
ResidualsSet _curSquaredResiduals
current squared residual set associated to object
Definition: LMSRobustEstimator.h:72
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53