CMorphologicalProcessorComp.h
Go to the documentation of this file.
1 #ifndef iipr_CMorphologicalProcessorComp_included
2 #define iipr_CMorphologicalProcessorComp_included
3 
4 
5 // ACF-Solutions includes
7 
8 
9 namespace iipr
10 {
11 
12 
17 {
18 public:
20 
22  {
27  };
28 
29  I_BEGIN_COMPONENT(CMorphologicalProcessorComp);
30  I_ASSIGN(m_filterSizeParamsIdAttrPtr, "FilterSizeParamsId", "ID of the filter dimension parameter set", true, "FilterSizeParamsId");
31  I_ASSIGN(m_processingModeAttrPtr, "ProcessingMode", "Filter processing mode\n0 - Erosion\n1 - Dilatation\n2 - Opening\n3 - Closing", true, 0);
32  I_END_COMPONENT;
33 
34 protected:
35  // reimplemented (CImageRegionProcessorCompBase)
36  virtual bool ProcessImageRegion(
37  const iimg::IBitmap& inputBitmap,
38  const iprm::IParamsSet* paramsPtr,
39  const i2d::IObject2d* aoiPtr,
40  istd::IChangeable* outputPtr) const;
41 private:
42  I_ATTR(QByteArray, m_filterSizeParamsIdAttrPtr);
43  I_ATTR(int, m_processingModeAttrPtr);
44 };
45 
46 
47 } // namespace iipr
48 
49 
50 #endif // !iipr_CMorphologicalProcessorComp_included
51 
CImageRegionProcessorCompBase BaseClass
Basic implementation for a image region processor.
virtual bool ProcessImageRegion(const iimg::IBitmap &inputBitmap, const iprm::IParamsSet *paramsPtr, const i2d::IObject2d *aoiPtr, istd::IChangeable *outputPtr) const
Process the defined image region.

© 2007-2011 Witold Gantzke and Kirill Lepskiy