IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HuMatch2dMsrParams.h
1 // HuMatch2dMsrParams.h:
3 // ---------------------
4 //
15 
16 #ifndef __IPSDKIPLSHAPEANALYSIS_HUMATCH2DMSRPARAMS_H__
17 #define __IPSDKIPLSHAPEANALYSIS_HUMATCH2DMSRPARAMS_H__
18 
23 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/HuMoments.h>
25 
26 namespace ipsdk {
27 namespace imaproc {
28 namespace shape {
29 namespace analysis {
30 
33 
34 IPSDK_DECLARE_NODE_DATA(IPSDKIPLShapeAnalysis, HuMatch2dMsrParams,
35  ((LEAF)(ProcessHoles)(ipsdk::ipBool)(false))
36  ((ENUMLEAF)(DistanceType)(ipsdk::geom::eShapeHuDistanceType)(ipsdk::geom::eShapeHuDistanceType::eSDT_Type3))
37  ((LEAF)(Threshold)(ipsdk::ipReal64)(NumericLimits<ipReal64>::max()))
38  ((NODE_COLL)(ShapeHuMomentsColl)(ipsdk::imaproc::attr::HuMoments)))
39 };
40 
43 
45 typedef boost::shared_ptr<HuMatch2dMsrParams> HuMatch2dMsrParamsPtr;
46 
48 typedef boost::shared_ptr<const HuMatch2dMsrParams> HuMatch2dMsrParamsConstPtr;
49 
52 
55 createHuMatch2dMsrParams(const std::vector<ipsdk::geom::Shape2dPtr>& vShapes2d,
56  const ipsdk::ipBool bProcessHoles = false,
57  const ipsdk::geom::eShapeHuDistanceType& distanceType = ipsdk::geom::eShapeHuDistanceType::eSDT_Type3,
58  const ipsdk::ipReal64 threshold = NumericLimits<ipReal64>::max());
59 
62 
63 } // end of namespace analysis
64 } // end of namespace shape
65 } // end of namespace imaproc
66 } // end of namespace ipsdk
67 
68 #endif // __IPSDKIPLSHAPEANALYSIS_HUMATCH2DMSRPARAMS_H__
#define IPSDK_DECLARE_NODE_DATA(libraryName, className, childSeq)
double ipReal64
boost::shared_ptr< const HuMatch2dMsrParams > HuMatch2dMsrParamsConstPtr
shared pointer to const HuMatch2dMsrParams
Definition: HuMatch2dMsrParams.h:176
Definition of import/export macro for library.
bool ipBool
IPSDKIPLSHAPEANALYSIS_API HuMatch2dMsrParamsPtr createHuMatch2dMsrParams(const std::vector< ipsdk::geom::Shape2dPtr > &vShapes2d, const ipsdk::ipBool bProcessHoles=false, const ipsdk::geom::eShapeHuDistanceType &distanceType=ipsdk::geom::eShapeHuDistanceType::eSDT_Type3, const ipsdk::ipReal64 threshold=NumericLimits< ipReal64 >::max())
function allowing to create a new parameter object for HuMatch2d measure
boost::shared_ptr< HuMatch2dMsrParams > HuMatch2dMsrParamsPtr
shared pointer to HuMatch2dMsrParams
Definition: HuMatch2dMsrParams.h:173
#define IPSDKIPLSHAPEANALYSIS_API
Import/Export macro for library IPSDKIPLShapeAnalysis.
Definition: IPSDKIPLShapeAnalysisExports.h:25
Hu moments of a shape.
Definition: HuMoments.h:66