IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
NearestNeighbors2dMsrInfo.h
1 // NearestNeighbors2dMsrInfo.h:
3 // ----------------------------
4 //
15 
16 #ifndef __IPSDKIPLSHAPEANALYSIS_NEARESTNEIGHBORS2DMSRINFO_H__
17 #define __IPSDKIPLSHAPEANALYSIS_NEARESTNEIGHBORS2DMSRINFO_H__
18 
20 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/Basic/HolesBasicPolicyMsrParams.h>
21 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/Neighborhood/NeighborsDistanceMsrParams.h>
23 
24 namespace ipsdk {
25 namespace imaproc {
26 namespace shape {
27 namespace analysis {
28 
30 
33 
37 
40 
41 // declare a measure information
43  NearestNeighbors2d,
45  ((eMVP_2d)(Shape2dRTree)(Shape2dRTree)(createHolesBasicPolicyMsrParams(_pMsrParams->getValue<NeighborsDistanceMsrParams::ProcessHoles>())))
46  ((eMVP_2d)(Neighbors2dDistanceCollector)(Neighbors2dDistanceCollector)(boost::make_shared<NeighborsDistanceMsrParams>(*_pMsrParams))),
47  eMSR_RequireShapeBoundaryApprox,
48  eMUF_NoUnit)
49 
50 // methods
51 public:
52 
53 protected:
55  BoolResult validateMsrParams(const bool b2dMsrMode, const DataItemConstPtr& pMeasureParams) const;
56 
57 // attributs
58 protected:
59 
60 };
61 
64 
65 } // end of namespace analysis
66 } // end of namespace shape
67 } // end of namespace imaproc
68 } // end of namespace ipsdk
69 
70 #endif // __IPSDKIPLSHAPEANALYSIS_NEARESTNEIGHBORS2DMSRINFO_H__
boost::shared_ptr< const BaseDataItem > DataItemConstPtr
parameter for measures using a distance between entities
Definition: NeighborsDistanceMsrParams.h:45
Definition of import/export macro for library.
Measurement results object for measure NearestNeighbors.
Definition: NearestNeighborsMsrResults.h:35
ipsdk::imaproc::shape::analysis::NeighborsDistanceMsrParams NearestNeighbors2dMsrParams
parameters type associated to measure
Definition: NearestNeighbors2dMsrInfo.h:29
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)