CImageNormalizeProcessorComp.h
Go to the documentation of this file.
1 #ifndef iipr_CImageNormalizeProcessorComp_included
2 #define iipr_CImageNormalizeProcessorComp_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 
8 // ACF includes
9 #include "i2d/CRectangle.h"
10 
11 // ACF-Solutions includes
13 
15 
16 
17 namespace iipr
18 {
19 
20 
26 {
27 public:
29 
30  I_BEGIN_COMPONENT(CImageNormalizeProcessorComp);
31  I_ASSIGN(m_aoiParamIdAttrPtr, "AoiParamId", "ID of rectangle AOI area in parameter set, only this area will processed", false, "AoiParamId");
32  I_ASSIGN(m_adjustParamsIdAttrPtr, "AdjustParamsId", "ID of parameters for contrast and brightness in parameter set", false, "AdjustParamsId");
33  I_ASSIGN(m_defaultAoiParamCompPtr, "DefaultAoiParam", "Default parameter for rectangle AOI area, if no parameters are specified", false, "DefaultAoiParam");
34  I_ASSIGN(m_defaultAdjustParamsCompPtr, "DefaultAdjustParams", "Default adjust parameters, if no parameters are specified", false, "DefaultAdjustParams");
35  I_END_COMPONENT;
36 
37 protected:
38  // reimplemented (iipr::CImageProcessorCompBase)
39  virtual bool ProcessImage(
40  const iprm::IParamsSet* paramsPtr,
41  const iimg::IBitmap& inputImage,
42  iimg::IBitmap& outputImage);
43 
44 private:
45  I_ATTR(QByteArray, m_aoiParamIdAttrPtr);
46  I_ATTR(QByteArray, m_adjustParamsIdAttrPtr);
47  I_REF(i2d::CRectangle, m_defaultAoiParamCompPtr);
48  I_REF(imeas::ILinearAdjustParams, m_defaultAdjustParamsCompPtr);
49 };
50 
51 
52 } // namespace iipr
53 
54 
55 #endif // !iipr_CImageNormalizeProcessorComp_included
56 
57 
Get parameter of linear adjust.
virtual bool ProcessImage(const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &inputImage, iimg::IBitmap &outputImage)
Implementation of image smooth operator with homogeneous rectangle kernel.
Basic implementation for a simple bitmap processor.

© 2007-2011 Witold Gantzke and Kirill Lepskiy