Image Component Library (ICL)
DemoGrabber.h
Go to the documentation of this file.
1 /********************************************************************
2 ** Image Component Library (ICL) **
3 ** **
4 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
5 ** Neuroinformatics Group **
6 ** Website: www.iclcv.org and **
7 ** http://opensource.cit-ec.de/projects/icl **
8 ** **
9 ** File : ICLIO/src/ICLIO/DemoGrabber.h **
10 ** Module : ICLIO **
11 ** Authors: Christof Elbrechter, Viktor Richter **
12 ** **
13 ** **
14 ** GNU LESSER GENERAL PUBLIC LICENSE **
15 ** This file may be used under the terms of the GNU Lesser General **
16 ** Public License version 3.0 as published by the **
17 ** **
18 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
19 ** included in the packaging of this file. Please review the **
20 ** following information to ensure the license requirements will **
21 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
22 ** **
23 ** The development of this software was supported by the **
24 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
25 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
26 ** Forschungsgemeinschaft (DFG) in the context of the German **
27 ** Excellence Initiative. **
28 ** **
29 ********************************************************************/
30 
31 #pragma once
32 
33 #include <ICLUtils/CompatMacros.h>
34 #include <ICLUtils/Time.h>
35 #include <ICLUtils/Size32f.h>
36 #include <ICLCore/Color.h>
37 
38 #include <ICLIO/Grabber.h>
39 
40 namespace icl{
41  namespace io{
42 
43 
45 
48  class ICLIO_API DemoGrabber : public Grabber{
49  public:
51  virtual const core::ImgBase* acquireImage();
52 
54  DemoGrabber(float maxFPS=30);
55 
57  ~DemoGrabber();
58 
59  private:
60 
63 
66 
69 
72 
75 
77  float m_maxFPS;
78 
81 
84 
87 
90 
93 
96 
97  public:
99  void processPropertyChange(const utils::Configurable::Property &prop);
100  };
101 
102  } // namespace io
103 }
104 
utils::Point32f m_maxV
maximum velocity of the rect
Definition: DemoGrabber.h:68
undocument this line if you encounter any issues!
Definition: Any.h:37
core::depth m_drawDepth
current output depth
Definition: DemoGrabber.h:89
utils::Time m_lastTime
time variable to ensure max. fpsCount
Definition: DemoGrabber.h:80
ICL Time class (taken from the Ice lib)
Definition: Time.h:52
utils::Size32f m_size
relative size of the rect
Definition: DemoGrabber.h:71
format
determines the color-format, that is associated with the images channels
Definition: Types.h:70
#define ICLIO_API
Definition: CompatMacros.h:176
float m_maxFPS
max. fpsCount for this grabber instance
Definition: DemoGrabber.h:77
utils::Mutex m_mutex
mutex for locking properties and grabbing
Definition: DemoGrabber.h:95
Size class of the ICL.
Definition: Size.h:61
Common interface class for all grabbers.
Definition: Grabber.h:153
depth
determines the pixel type of an image (8Bit-int or 32Bit-float)
Definition: Types.h:60
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
Demo Grabber class providing am image with a moving rect.
Definition: DemoGrabber.h:48
utils::Point32f m_x
Current rel. location of the rect.
Definition: DemoGrabber.h:62
core::ImgBase * m_drawBuffer
extra buffer for the output image
Definition: DemoGrabber.h:83
core::Color m_color
Color of the rect (light red)
Definition: DemoGrabber.h:74
utils::Point32f m_v
Current rel. velocity of the rect.
Definition: DemoGrabber.h:65
Size32f class of the ICL (float valued)
Definition: Size32f.h:40
utils::Size m_drawSize
current output size
Definition: DemoGrabber.h:92
Represents a single property.
Definition: Configurable.h:200
Mutex class of the ICL.
Definition: Mutex.h:54
core::format m_drawFormat
current output format
Definition: DemoGrabber.h:86
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131