CConvolutionKernel2dComp.h
Go to the documentation of this file.
1 #ifndef iipr_CConvolutionKernel2dComp_included
2 #define iipr_CConvolutionKernel2dComp_included
3 
4 
5 // ACF includes
6 #include "icomp/CComponentBase.h"
7 
8 // ACF-Solutions includes
10 
11 
12 namespace iipr
13 {
14 
15 
17 {
18 public:
21 
22  I_BEGIN_COMPONENT(CConvolutionKernel2dComp);
23  I_REGISTER_INTERFACE(IConvolutionKernel2d);
24  I_REGISTER_INTERFACE(iser::ISerializable);
25  I_REGISTER_INTERFACE(imath::ISampledFunction2d);
26  I_ASSIGN_MULTI_0(m_kernelAttrPtr, "Kernel", "List of kernel coefficients", false);
27  I_ASSIGN(m_kernelWidthAttrPtr, "KernelWidth", "Width of the filter kernel", false, 0);
28  I_ASSIGN(m_kernelHeightAttrPtr, "KernelHeight", "Height of the filter kernel", false, 0);
29  I_END_COMPONENT;
30 
31 protected:
32  // reimplemented (icomp::CComponentBase)
33  virtual void OnComponentCreated();
34 
35 private:
36  I_ATTR(int, m_kernelWidthAttrPtr);
37  I_ATTR(int, m_kernelHeightAttrPtr);
38  I_MULTIATTR(double, m_kernelAttrPtr);
39 };
40 
41 
42 } // namespace iipr
43 
44 
45 #endif // !iipr_CConvolutionKernel2dComp_included
46 
Interface for 2D-convolution filter kernel.
Implementation of a general 2D convolution kernel.

© 2007-2011 Witold Gantzke and Kirill Lepskiy