CAdaptiveImageBinarizeProcessorComp.h
Go to the documentation of this file.
1 #ifndef iipr_CAdaptiveImageBinarizeProcessorComp_included
2 #define iipr_CAdaptiveImageBinarizeProcessorComp_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(CAdaptiveImageBinarizeProcessorComp);
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  iimg::IBitmap& outputBitmap) const;
40 
41 private:
42  I_ATTR(QByteArray, m_binarizationParamsIdAttrPtr);
43 };
44 
45 
46 } // namespace iipr
47 
48 
49 #endif // !iipr_CAdaptiveImageBinarizeProcessorComp_included
50 
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)

© 2007-2017 Witold Gantzke and Kirill Lepskiy