IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
NearestNeighbors3dMsrInfo.h
1 // NearestNeighbors3dMsrInfo.h:
3 // ----------------------------
4 //
15 
16 #ifndef __IPSDKIPLSHAPEANALYSIS_NEARESTNEIGHBORS3DMSRINFO_H__
17 #define __IPSDKIPLSHAPEANALYSIS_NEARESTNEIGHBORS3DMSRINFO_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  NearestNeighbors3d,
45  ((eMVP_3d)(Shape3dRTree)(Shape3dRTree)(createHolesBasicPolicyMsrParams(_pMsrParams->getValue<NeighborsDistanceMsrParams::ProcessHoles>())))
46  ((eMVP_3d)(Neighbors3dDistanceCollector)(Neighbors3dDistanceCollector)(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_NEARESTNEIGHBORS3DMSRINFO_H__
boost::shared_ptr< const BaseDataItem > DataItemConstPtr
ipsdk::imaproc::shape::analysis::NeighborsDistanceMsrParams NearestNeighbors3dMsrParams
parameters type associated to measure
Definition: NearestNeighbors3dMsrInfo.h:29
parameter for measures using a distance between entities
Definition: NeighborsDistanceMsrParams.h:45
Definition of import/export macro for library.
#define IPSDK_DECLARE_GEOMETRY3D_MEASURE_INFO_WITH_PARAMS(libraryName, msrName, msrResultType, msrDependSeq, msrShapeRequirements, msrUnitFormat)
Measurement results object for measure NearestNeighbors.
Definition: NearestNeighborsMsrResults.h:35
IPSDKIPLSHAPEANALYSIS_API HolesBasicPolicyMsrParamsPtr createHolesBasicPolicyMsrParams(const ipBool bProcessHoles)
function allowing to create a new parameter object for measures needing a basic hole processing polic...