CSimpleLensCorrectionComp.h
Go to the documentation of this file.
1 #ifndef icalib_CSimpleLensCorrectionComp_included
2 #define icalib_CSimpleLensCorrectionComp_included
3 
4 
5 // ACF includes
6 #include <icomp/CComponentBase.h>
7 
8 // ACF-Solutions includes
10 
11 
12 namespace icalib
13 {
14 
15 
20 {
21 public:
24 
25  I_BEGIN_COMPONENT(CSimpleLensCorrectionComp);
26  I_REGISTER_INTERFACE(ICalibration2d);
27  I_REGISTER_INTERFACE(ITransformation2d);
28  I_REGISTER_INTERFACE(iser::ISerializable);
29  I_REGISTER_INTERFACE(CSimpleLensCorrection);
30  I_ASSIGN(m_defaultDistortionFactorAttrPtr, "DefaultDistortionFactor", "Default value of lens distortion factor", true, 0);
31  I_ASSIGN(m_defaultOpticalCenterXAttrPtr, "DefaultOpticalCenterX", "Default value of lens optical center X", true, 0);
32  I_ASSIGN(m_defaultOpticalCenterYAttrPtr, "DefaultOpticalCenterY", "Default value of lens optical center Y", true, 0);
33  I_END_COMPONENT;
34 
35 protected:
36  // reimplemented (icomp::CComponentBase)
37  virtual void OnComponentCreated();
38 
39 private:
40  I_ATTR(double, m_defaultDistortionFactorAttrPtr);
41  I_ATTR(double, m_defaultOpticalCenterXAttrPtr);
42  I_ATTR(double, m_defaultOpticalCenterYAttrPtr);
43 };
44 
45 
46 } // namespace icalib
47 
48 
49 #endif // !icalib_CSimpleLensCorrectionComp_included
50 
51 
Attributable component for simple lens correction.
Represents simple correction of image distortion by lenses.

© 2007-2017 Witold Gantzke and Kirill Lepskiy