IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
MaxInscribedCircle2dMsrInfo.h
1 // MaxInscribedCircle2dMsrInfo.h:
3 // ------------------------------
4 //
15 
16 #ifndef __IPSDKIPLSHAPEANALYSIS_MAXINSCRIBEDCIRCLE2DMSRINFO_H__
17 #define __IPSDKIPLSHAPEANALYSIS_MAXINSCRIBEDCIRCLE2DMSRINFO_H__
18 
20 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/Basic/HolesBasicPolicyMsrParams.h>
21 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Geometry/Skeleton/Skeleton2dThickness/Skeleton2dThicknessMsrParams.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  MaxInscribedCircle2d,
45  ((eMVP_2d)(Thickness)(Skeleton2dThickness)(createDependencyMsrParams())),
46  eMUF_NoUnit)
47 
48 // methods
49 public:
50 
51 protected:
53  Skeleton2dThicknessMsrParamsPtr createDependencyMsrParams()
54  {
55  if (_pMsrParams->getValue<MaxInscribedCircle2dMsrParams::ProcessHoles>() == true)
56  return createSkeleton2dThicknessMsrParams(ipsdk::shape::segmentation::eSkeleton2dHolesPolicy::eSHP_ExtractedButNotAnalyzed);
57  else
58  return createSkeleton2dThicknessMsrParams(ipsdk::shape::segmentation::eSkeleton2dHolesPolicy::eSHP_Ignored);
59  }
60 
61 // attributs
62 protected:
63 
64 };
65 
68 
69 } // end of namespace analysis
70 } // end of namespace shape
71 } // end of namespace imaproc
72 } // end of namespace ipsdk
73 
74 #endif // __IPSDKIPLSHAPEANALYSIS_MAXINSCRIBEDCIRCLE2DMSRINFO_H__
HolesBasicPolicyMsrParams MaxInscribedCircle2dMsrParams
parameter type associated to class
Definition: MaxInscribedCircle2dMsrInfo.h:29
#define IPSDK_DECLARE_GENERIC_MEASURE_INFO_WITH_PARAMS(libraryName, msrName, msrResultType, msrDependSeq, msrUnitFormat)
Definition of import/export macro for library.
Parameter object for measures needing a basic hole processing policy.
Definition: HolesBasicPolicyMsrParams.h:41
Measurement results object for measure associated to Circle2d.
Definition: Circle2dMsrResults.h:36