IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
AspectRatioMsrInfo.h
1 // AspectRatioMsrInfo.h:
3 // -----------------------
4 //
15 
16 #ifndef __IPSDKIPLSHAPEANALYSIS_ASPECTRATIOMSRINFO_H__
17 #define __IPSDKIPLSHAPEANALYSIS_ASPECTRATIOMSRINFO_H__
18 
20 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/FormFactor/AspectRatio/AspectRatioMsrParams.h>
21 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/FormFactor/MaxFeretDiameter/MaxFeretDiameterMsrParams.h>
22 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/FormFactor/MinFeretDiameter/MinFeretDiameterMsrParams.h>
24 
25 namespace ipsdk {
26 namespace imaproc {
27 namespace shape {
28 namespace analysis {
29 
32 
33 // declare a measure information
35  AspectRatio,
37  ((eMVP_2d3d)(MinFeretDiameter)(MinFeretDiameter)(createMinFeretDiameterMsrParams(_pMsrParams->getValue<AspectRatioMsrParams::NbOrientations>())))
38  ((eMVP_2d3d)(MaxFeretDiameter)(MaxFeretDiameter)(createMaxFeretDiameterMsrParams(_pMsrParams->getValue<AspectRatioMsrParams::NbOrientations>()))),
39  eMUF_NoUnit)
40 
41 // methods
42 public:
43 
44 protected:
45 
47  virtual BoolResult validateMsrParams(const bool b2dMsrMode, const DataItemConstPtr& pMeasureParams) const;
48 
49 // attributs
50 protected:
51 
52 };
53 
56 
57 } // end of namespace analysis
58 } // end of namespace shape
59 } // end of namespace imaproc
60 } // end of namespace ipsdk
61 
62 #endif // __IPSDKIPLSHAPEANALYSIS_ASPECTRATIOMSRINFO_H__
#define IPSDK_DECLARE_GENERIC_MEASURE_INFO_WITH_PARAMS(libraryName, msrName, msrResultType, msrDependSeq, msrUnitFormat)
boost::shared_ptr< const BaseDataItem > DataItemConstPtr
Definition of import/export macro for library.
IPSDKIPLSHAPEANALYSIS_API MinFeretDiameterMsrParamsPtr createMinFeretDiameterMsrParams(ipsdk::ipUInt32 nbOrientations=36)
function allowing to create a new parameter object for MinFeretDiameter measure
IPSDKIPLSHAPEANALYSIS_API MaxFeretDiameterMsrParamsPtr createMaxFeretDiameterMsrParams(ipsdk::ipUInt32 nbOrientations=36)
function allowing to create a new parameter object for MaxFeretDiameter measure