IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
NbNeighborsMsrInfo.h
1 // NbNeighborsMsrInfo.h:
3 // ---------------------
4 //
15 
16 #ifndef __IPSDKIPLSHAPEANALYSIS_NBNEIGHBORSMSRINFO_H__
17 #define __IPSDKIPLSHAPEANALYSIS_NBNEIGHBORSMSRINFO_H__
18 
20 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/Neighborhood/NeighborsDistanceMsrParams.h>
22 
23 namespace ipsdk {
24 namespace imaproc {
25 namespace shape {
26 namespace analysis {
27 
30 
34 
37 
38 // declare a measure information
40  NbNeighbors,
42  ((eMVP_2d)(NearestNeighbors)(NearestNeighbors2d)(boost::make_shared<NeighborsDistanceMsrParams>(*_pMsrParams)))
43  ((eMVP_3d)(NearestNeighbors)(NearestNeighbors3d)(boost::make_shared<NeighborsDistanceMsrParams>(*_pMsrParams))),
44  eMUF_NoUnit)
45 
46 // methods
47 public:
48 
49 protected:
51  BoolResult validateMsrParams(const bool b2dMsrMode, const DataItemConstPtr& pMeasureParams) const;
52 
53 // attributs
54 protected:
55 
56 };
57 
60 
61 } // end of namespace analysis
62 } // end of namespace shape
63 } // end of namespace imaproc
64 } // end of namespace ipsdk
65 
66 #endif // __IPSDKIPLSHAPEANALYSIS_NBNEIGHBORSMSRINFO_H__
#define IPSDK_DECLARE_GENERIC_MEASURE_INFO_WITH_PARAMS(libraryName, msrName, msrResultType, msrDependSeq, msrUnitFormat)
boost::shared_ptr< const BaseDataItem > DataItemConstPtr
parameter for measures using a distance between entities
Definition: NeighborsDistanceMsrParams.h:45
ipsdk::imaproc::shape::analysis::NeighborsDistanceMsrParams NbNeighborsMsrParams
parameters type associated to measure
Definition: NbNeighborsMsrInfo.h:33
Definition of import/export macro for library.