CCircleFinderParamsComp.h
Go to the documentation of this file.
1 #ifndef iipr_CCircleFinderParamsComp_included
2 #define iipr_CCircleFinderParamsComp_included
3 
4 
5 #include "icomp/CComponentBase.h"
6 
8 
9 
10 namespace iipr
11 {
12 
13 
15 {
16 public:
18 
19  I_BEGIN_COMPONENT(CCircleFinderParamsComp);
20  I_REGISTER_INTERFACE(iser::ISerializable);
21  I_REGISTER_INTERFACE(iipr::ICircleFinderParams);
22  I_ASSIGN(m_isOutlierEliminationEnabledAttrPtr, "OutlierEliminationEnabled", "Enable outliers elimination", false, false);
23  I_ASSIGN(m_minOutlierDistanceAttrPtr, "MinOutlierDistance", "Minimal outliers distance in pixel", false, 5.0);
24  I_ASSIGN(m_raysCountAttrPtr, "RaysCount", "Maximal number of projection rays, -1 for automatic calculation", false, -1);
25  I_ASSIGN(m_caliperModeAttrPtr, "CaliperMode", "Mode of caliper\n\t0 - first candidate\n\t1 - best candidate", true, 0);
26  I_END_COMPONENT;
27 
28 protected:
29  // reimplemented (icomp::CComponentBase)
30  virtual void OnComponentCreated();
31 
32 private:
33  I_ATTR(bool, m_isOutlierEliminationEnabledAttrPtr);
34  I_ATTR(double, m_minOutlierDistanceAttrPtr);
35  I_ATTR(int, m_raysCountAttrPtr);
36  I_ATTR(int, m_caliperModeAttrPtr);
37 };
38 
39 
40 } // namespace iipr
41 
42 
43 #endif // !iipr_CCircleFinderParamsComp_included
44 
45 
virtual void OnComponentCreated()
Interface for the circle finder parameter.

© 2007-2011 Witold Gantzke and Kirill Lepskiy