IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
LengthOfContact2dMsrInfo.h
1 // LengthOfContact2dMsrInfo.h:
3 // ---------------------------
4 //
15 
16 #ifndef __IPSDKIPLSHAPEANALYSIS_LENGTHOFCONTACT2DMSRINFO_H__
17 #define __IPSDKIPLSHAPEANALYSIS_LENGTHOFCONTACT2DMSRINFO_H__
18 
20 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/Basic/HolesBasicPolicyMsrParams.h>
21 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/Neighborhood/NeighborsDistanceMsrParams.h>
22 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/Neighborhood/LengthOfContact2d/LengthOfContact2dMsrParams.h>
24 
25 namespace ipsdk {
26 namespace imaproc {
27 namespace shape {
28 namespace analysis {
29 
32 
33 // declare a measure information
35  LengthOfContact2d,
37  ((eMVP_2d)(Shape2dRTree)(Shape2dRTree)(createHolesBasicPolicyMsrParams(_pMsrParams->getValue<LengthOfContact2dMsrParams::ProcessHoles>())))
38  ((eMVP_2d)(Neighbors2dDistanceCollector)(Neighbors2dDistanceCollector)(createNeighborsDistanceMsrParams(_pMsrParams->getValue<LengthOfContact2dMsrParams::ContactDist>(),
39  _pMsrParams->getValue<LengthOfContact2dMsrParams::ProcessHoles>()))),
40  eMSR_RequireShapeBoundaryApprox,
41  eMUF_LengthUnit)
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_LENGTHOFCONTACT2DMSRINFO_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...
IPSDKIPLSHAPEANALYSIS_API NeighborsDistanceMsrParamsPtr createNeighborsDistanceMsrParams(const ipReal32 maxDist, const ipBool bProcessHoles)
function allowing to create a new parameter object for neighbors distance measure ...
#define IPSDK_DECLARE_GEOMETRY2D_MEASURE_INFO_WITH_PARAMS(libraryName, msrName, msrResultType, msrDependSeq, msrShapeRequirements, msrUnitFormat)