CImageBinarizeProcessorComp.h
Go to the documentation of this file.
1 #ifndef iipr_CImageBinarizeProcessorComp_included
2 #define iipr_CImageBinarizeProcessorComp_included
3 
4 
5 // ACF includes
6 #include "iimg/IBitmap.h"
8 
9 // ACF-Solutions includes
10 #include "imeas/INumericValue.h"
11 
12 
13 namespace iipr
14 {
15 
16 
21 {
22 public:
24 
25  I_BEGIN_COMPONENT(CImageBinarizeProcessorComp);
26  I_ASSIGN(m_binarizationParamsIdAttrPtr, "BinarizationParameterId", "ID of binarization parameters in the parameter set", false, "BinarizationParameterId");
27  I_END_COMPONENT;
28 
29  // reimplemented (iproc::IProcessor)
30  virtual int DoProcessing(
31  const iprm::IParamsSet* paramsPtr,
32  const istd::IPolymorphic* inputPtr,
33  istd::IChangeable* outputPtr,
34  ibase::IProgressManager* progressManagerPtr = NULL);
35 
36 private:
37  bool ConvertImage(
38  const iimg::IBitmap& inputBitmap,
39  const imeas::INumericValue& thresholdParams,
40  iimg::IBitmap& outputBitmap) const;
41 
42 private:
43  I_ATTR(QByteArray, m_binarizationParamsIdAttrPtr);
44 };
45 
46 
47 } // namespace iipr
48 
49 
50 #endif // !iipr_CImageBinarizeProcessorComp_included
51 
Simple definition macro for a synchronous processor.
Processor for image binarization using static threshold.
virtual int DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
iproc::CSyncProcessorCompBase BaseClass
General parameter set containing list of numeric values.
Definition: INumericValue.h:19

© 2007-2011 Witold Gantzke and Kirill Lepskiy