CCalibratedCameraComp.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 // ACF includes
5 #include <iimg/IBitmap.h>
7 
8 
9 namespace icam
10 {
11 
12 
17 {
18 public:
19  enum{
20  RESOLUTION_PATTERN = 0xff00ff00
21  };
22 
24 
25  I_BEGIN_COMPONENT(CCalibratedCameraComp);
26  I_ASSIGN(m_scaleParamIdAttrPtr, "ScaleParamId", "ID of the scale parameter in the parameter set", true, "Scale");
27  I_END_COMPONENT;
28 
29  static bool ReadImageResolution(const iimg::IBitmap& bitmap, double& resolution);
30  static bool WriteImageResolution(iimg::IBitmap& bitmap, double resolution);
31 
32  // reimplemented (iproc::IProcessor)
33  virtual int DoProcessing(
34  const iprm::IParamsSet* paramsPtr,
35  const istd::IPolymorphic* inputPtr,
36  istd::IChangeable* outputPtr,
37  ibase::IProgressManager* progressManagerPtr = NULL);
38 
39 private:
40  I_ATTR(QByteArray, m_scaleParamIdAttrPtr);
41 };
42 
43 
44 } // namespace icam
45 
46 
virtual int DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
Do synchronized processing.
icam::CCameraDelegatorComp BaseClass
static bool ReadImageResolution(const iimg::IBitmap &bitmap, double &resolution)
static bool WriteImageResolution(iimg::IBitmap &bitmap, double resolution)
Implementation of bitmap acquisition delegating all calls to some slave object.
Camera provided bitmaps with integrated calibration information.

© 2007-2017 Witold Gantzke and Kirill Lepskiy