IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
EstimationUtils.h
Go to the documentation of this file.
1 // EstimationUtils.h:
3 // ------------------
4 //
14 
15 #ifndef __IPSDKMATH_ESTIMATIONUTILS_H__
16 #define __IPSDKMATH_ESTIMATIONUTILS_H__
17 
20 #include <IPSDKUtil/Tools/ProcessingResult.h>
22 
23 namespace ipsdk {
24 namespace math {
25 
26 class EstimationConfig;
27 class EstimationResults;
28 
31 
33 IPSDKMATH_API EstimationConfig
35 
42 IPSDKMATH_API void
43 processEstimation(const EstimationConfig& config,
44  const EstimatorPtr& pEstimator,
45  const DataSet& inputDataSet,
46  EstimationResults& results);
47 
57 IPSDKMATH_API void
58 processEstimation(const EstimationConfig& config,
59  const EstimatorPtr& pEstimator,
60  const CostFunCreator& costFunCreator,
61  const DataSet& inputDataSet,
62  EstimationResults& results);
63 
70 createRobustEstimator(const EstimationConfig& config,
71  const EstimatorPtr& pEstimator);
72 
76 computeRMS(const ResidualsSet& residualsSet);
77 
81 computeRMS(const ResidualsSet& residualsSet,
82  const OutlierFlags& outlierFlags);
83 
89 extractInliers(const DataSet& fullDataSet,
90  const OutlierFlags& outlierFlags);
91 
95 computeNbOutliers(const OutlierFlags& outlierFlags);
96 
100 computeNbInliers(const OutlierFlags& outlierFlags);
101 
104 checkDataSize(const DataSet& dataSet,
105  const ipUInt32 dataSize);
106 
109 
110 } // end of namespace math
111 
114 
115 } // end of namespace ipsdk
116 
117 #endif // __IPSDKMATH_ESTIMATIONUTILS_H__
Definition of import/export macro for library.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
CostFunctionPtr(* CostFunCreator)(const DataSet &dataSet)
Definition: EstimationTypes.h:92
IPSDK_DECLARE_SERIAL_ENUM(IPSDKBaseData, eDiscreteOrientation2d)
serialization operators for eDiscreteOrientation2d enumerate
std::vector< DataType > DataSet
collection of data associated to estimation
Definition: EstimationTypes.h:67
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
eRobustEstimationType
Definition: EstimationTypes.h:40
IPSDKMATH_API ipUInt32 computeNbOutliers(const OutlierFlags &outlierFlags)
function allowing to compute number of outliers into a collection of outlier flags ...
IPSDKMATH_API RobustEstimatorPtr createRobustEstimator(const EstimationConfig &config, const EstimatorPtr &pEstimator)
function allowing to create and initialize a robust estimator
Macro allowing to declare serialization for a given enumerate.
#define IPSDKMATH_API
Import/Export macro for library IPSDKMath.
Definition: IPSDKMathExports.h:27
boost::shared_ptr< BaseRobustEstimator > RobustEstimatorPtr
shared pointer to BaseRobustEstimator class
Definition: EstimationTypes.h:82
boost::shared_ptr< BaseEstimator > EstimatorPtr
shared pointer to BaseEstimator class
Definition: EstimationTypes.h:76
Predefined types for parametric estimation from data set.
IPSDKMATH_API EstimationConfig createNonRobustConfig()
function allowing to create a non robust estimation configuration
IPSDKMATH_API ipReal64 computeRMS(const ResidualsSet &residualsSet)
function allowing to compute root mean square from a collection of residuals
std::vector< bool > OutlierFlags
collection of outliers flags
Definition: EstimationTypes.h:70
Vector ResidualsSet
residuals type resulting from estimation
Definition: EstimationTypes.h:64
ProcessingResult< bool > BoolResult
typedef for boolean results associated to a string description
Definition: ProcessingResultTypes.h:29
IPSDKMATH_API ipUInt32 computeNbInliers(const OutlierFlags &outlierFlags)
function allowing to compute number of inliers into a collection of outlier flags ...
IPSDKMATH_API BoolResult checkDataSize(const DataSet &dataSet, const ipUInt32 dataSize)
function allowing to check data size among data set
IPSDKMATH_API void processEstimation(const EstimationConfig &config, const EstimatorPtr &pEstimator, const DataSet &inputDataSet, EstimationResults &results)
function allowing to launch a robust estimation process
IPSDKMATH_API DataSet extractInliers(const DataSet &fullDataSet, const OutlierFlags &outlierFlags)
function allowing to extract an inlier sub data set from a complete data set and a collection of outl...
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53