CRgbToGrayProcessorComp.h
Go to the documentation of this file.
1 #ifndef iipr_CRgbToGrayProcessorComp_included
2 #define iipr_CRgbToGrayProcessorComp_included
3 
4 
5 // ACF includes
6 #include "iimg/IBitmap.h"
7 
9 
10 
11 namespace iipr
12 {
13 
14 
19 {
20 public:
22 
23  I_BEGIN_COMPONENT(CRgbToGrayProcessorComp);
24  I_END_COMPONENT;
25 
26  // reimplemented (iproc::IProcessor)
27  virtual int DoProcessing(
28  const iprm::IParamsSet* paramsPtr,
29  const istd::IPolymorphic* inputPtr,
30  istd::IChangeable* outputPtr,
31  ibase::IProgressManager* progressManagerPtr = NULL);
32 
33 private:
34  bool ConvertImage(const iimg::IBitmap& inputBitmap, iimg::IBitmap& outputBitmap) const;
35 };
36 
37 
38 } // namespace iipr
39 
40 
41 #endif // !iipr_CRgbToGrayProcessorComp_included
42 
Implementation of a processor for the RGB to Grayscale image conversion.
Simple definition macro for a synchronous processor.
iproc::CSyncProcessorCompBase BaseClass
virtual int DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)

© 2007-2011 Witold Gantzke and Kirill Lepskiy