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>
8 
9 
10 namespace iipr
11 {
12 
13 
18 {
19 public:
21 
22  I_BEGIN_COMPONENT(CRgbToGrayProcessorComp);
23  I_ASSIGN(m_channelWeightsParamsIdAttrPtr, "ChannelWeightsParamId", "ID of the color channel weight parameter in the parameter set", true, "ChannelWeights");
24  I_END_COMPONENT;
25 
26 protected:
27  // reimplemented (iipr::CImageProcessorCompBase)
28  virtual bool ProcessImage(
29  const iprm::IParamsSet* paramsPtr,
30  const iimg::IBitmap& inputImage,
31  iimg::IBitmap& outputImage) const override;
32 
33 private:
34  I_ATTR(QByteArray, m_channelWeightsParamsIdAttrPtr);
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.
iipr::CImageProcessorCompBase BaseClass
virtual bool ProcessImage(const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &inputImage, iimg::IBitmap &outputImage) const override
Basic implementation for a simple bitmap processor.

© 2007-2017 Witold Gantzke and Kirill Lepskiy