Image Component Library (ICL)
PixelSenseGrabber.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/PixelSenseGrabber.h **
10 ** Module : ICLIO **
11 ** Authors: Eckard Riedenklau, Christof Elbrechter **
12 ** (based on code by Florian Echtler) **
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 <ICLIO/Grabber.h>
35 
36 namespace icl{
37  namespace io{
38 
40 
47  class PixelSenseGrabber : public Grabber{
48  struct Data;
49  Data *m_data;
50 
51  public:
52 
54 
56  struct Blob{
72  icl8u padding[32];
73  };
74 
76  ICLIO_API virtual const core::ImgBase* acquireImage();
77 
79  ICLIO_API PixelSenseGrabber(float maxFPS = 30);
80 
83 
85  ICLIO_API static std::vector<Blob> extractBlobMetaData(const core::ImgBase *image);
86  };
87 
89 
90  ICLIO_API std::ostream &operator<<(std::ostream &str, const PixelSenseGrabber::Blob &b);
91 
93 
94  ICLIO_API std::istream &operator>>(std::istream &str, PixelSenseGrabber::Blob &b);
95 
96  } // namespace io
97 }
98 
icl16u cx
x-center (in screen coords);
Definition: PixelSenseGrabber.h:66
undocument this line if you encounter any issues!
Definition: Any.h:37
Ipp8u icl8u
8Bit unsigned integer type for the ICL
Definition: BasicTypes.h:64
icl16u axisx
x-axis (related to first principal axis)
Definition: PixelSenseGrabber.h:68
PixelSense Grabber class.
Definition: PixelSenseGrabber.h:47
icl8u padding[32]
padding bytes (unused)
Definition: PixelSenseGrabber.h:72
ICLIO_API PixelSenseGrabber(float maxFPS=30)
Create a PixelSenseGrabber with given max. fps count.
icl32u area
size in pixels (correlated to pressure?)
Definition: PixelSenseGrabber.h:71
icl16u cy
y-center (in screen coords);
Definition: PixelSenseGrabber.h:67
icl8u __unknown
always 0x01 or 0x02 (no idea what this is?)
Definition: PixelSenseGrabber.h:59
Blob structure.
Definition: PixelSenseGrabber.h:56
ICLIO_API ~PixelSenseGrabber()
destructor
icl16u bbwidth
bounding box width (in screen coords)
Definition: PixelSenseGrabber.h:62
icl16u bbheight
bounding box height (in screen coords)
Definition: PixelSenseGrabber.h:63
Ipp32f icl32f
32Bit floating point type for the ICL
Definition: BasicTypes.h:55
icl16u posy
finger tip y-pos (in screen coords)
Definition: PixelSenseGrabber.h:65
#define ICLIO_API
Definition: CompatMacros.h:176
Common interface class for all grabbers.
Definition: Grabber.h:153
std::string str(const T &t)
convert a data type into a string using an std::ostringstream instance
Definition: StringUtils.h:136
Data * m_data
internal data structure
Definition: PixelSenseGrabber.h:48
uint32_t icl32u
32bit unsigned integer type for the ICL
Definition: BasicTypes.h:88
icl16u posx
finger tip x-pos (in screen coords)
Definition: PixelSenseGrabber.h:64
icl16u bby
upper left y of bounding box (in screen coords)
Definition: PixelSenseGrabber.h:61
virtual ICLIO_API const core::ImgBase * acquireImage()
default grab function
icl16u bbx
upper left x of bounding box (in screen coords)
Definition: PixelSenseGrabber.h:60
uint16_t icl16u
16bit unsigned integer type for the ICL
Definition: BasicTypes.h:91
icl16u axisy
y-axis (related to 2nd principal axis)
Definition: PixelSenseGrabber.h:69
icl32f angle
angle of first principal axis
Definition: PixelSenseGrabber.h:70
static ICLIO_API std::vector< Blob > extractBlobMetaData(const core::ImgBase *image)
this utility method can be used to extract the meta-data of a grabbed image
ICLIO_API std::istream & operator>>(std::istream &is, ImageUndistortion &udist)
overloaded ostream operator for ImageUndistortion instances
std::ostream & operator<<(std::ostream &stream, const FourCC &fourCC)
overloaded ostream operator for type fourCC
Definition: FourCC.h:97
icl16u id
blob ID
Definition: PixelSenseGrabber.h:57
icl8u action
0x2 enter/exit, 0x3 update?
Definition: PixelSenseGrabber.h:58
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131