IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
DisparityAngularity2dMsrInfo.h
1 // DisparityAngularity2dMsrInfo.h:
3 // -------------------------------
4 //
15 
16 #ifndef __IPSDKIPLSHAPEANALYSIS_DISPARITYANGULARITY2DMSRINFO_H__
17 #define __IPSDKIPLSHAPEANALYSIS_DISPARITYANGULARITY2DMSRINFO_H__
18 
20 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/FormFactor/Angularity/DisparityAngularity2d/DisparityAngularity2dMsrParams.h>
21 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/Basic/HolesBasicPolicyMsrParams.h>
23 
24 namespace ipsdk {
25 namespace imaproc {
26 namespace shape {
27 namespace analysis {
28 
31 
32 // declare a measure information
34  DisparityAngularity2d,
36  ((eMVP_2d)(Perimeter2d)(Perimeter2d)(createHolesBasicPolicyMsrParams(_pMsrParams->getValue<DisparityAngularity2dMsrParams::ProcessHoles>())))
37  ((eMVP_2d)(Area2d)(PolygonArea2d)(createHolesBasicPolicyMsrParams(_pMsrParams->getValue<DisparityAngularity2dMsrParams::ProcessHoles>())))
38  ((eMVP_2d)(Barycenter2d)(Barycenter2d))
39  ((eMVP_2d)(InertiaOrientation2d)(InertiaOrientation2d)),
40  eMSR_RequireShapeBoundaryApprox,
41  eMUF_RadianUnit)
42 
43 // methods
44 public:
45 
46 protected:
48  BoolResult validateMsrParams(const bool b2dMsrMode, const DataItemConstPtr& pMeasureParams) const;
49 
50 // attributs
51 protected:
52 
53 };
54 
57 
58 } // end of namespace analysis
59 } // end of namespace shape
60 } // end of namespace imaproc
61 } // end of namespace ipsdk
62 
63 #endif // __IPSDKIPLSHAPEANALYSIS_DISPARITYANGULARITY2DMSRINFO_H__
boost::shared_ptr< const BaseDataItem > DataItemConstPtr
Definition of import/export macro for library.
IPSDKIPLSHAPEANALYSIS_API HolesBasicPolicyMsrParamsPtr createHolesBasicPolicyMsrParams(const ipBool bProcessHoles)
function allowing to create a new parameter object for measures needing a basic hole processing polic...
#define IPSDK_DECLARE_GEOMETRY2D_MEASURE_INFO_WITH_PARAMS(libraryName, msrName, msrResultType, msrDependSeq, msrShapeRequirements, msrUnitFormat)