Image Component Library (ICL)
GenericPointCloudGrabber.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 : ICLGeom/src/ICLGeom/GenericPointCloudGrabber.h **
10 ** Module : ICLGeom **
11 ** Authors: Christof Elbrechter **
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 
34 #include <ICLUtils/ProgArg.h>
35 #include <ICLUtils/Configurable.h>
36 
37 namespace icl{
38  namespace geom{
39 
42  struct Data;
43  Data *m_data;
44 
45  public:
46 
49 
51 
59  GenericPointCloudGrabber(const std::string &sourceType, const std::string &srcDescription);
60 
62 
64 
67 
69  void init(const std::string &sourceType, const std::string &srcDescription);
70 
72 
74  void reinit(const std::string &description) ;
75 
77  Camera getDepthCamera() const ;
78 
80  Camera getColorCamera() const ;
81 
83  void setCameraWorldFrame(const math::FixedMatrix<float,4,4> &T) ;
84 
85 
87 
88  void init(const utils::ProgArg &pa);
89 
91  bool isNull() const;
92 
94  virtual void grab(PointCloudObjectBase &dst);
95 
97  virtual const core::Img32f *getDepthImage() const;
98 
100  virtual const core::Img8u *getColorImage() const;
101 
102  };
103  } // namespace geom
104 }
105 
Powerful and highly flexible matrix class implementation.
Definition: FixedMatrix.h:172
undocument this line if you encounter any issues!
Definition: Any.h:37
Base class for point cloud data types.
Definition: PointCloudObjectBase.h:98
#define ICLGeom_API
Definition: CompatMacros.h:179
Camera class.
Definition: Camera.h:132
const ProgArg pa(const std::string &id, unsigned int subargidx=0)
returns given program argument
Definition: ProgArg.h:304
Programm argument utility class.
Definition: ProgArg.h:80
Data * m_data
Definition: GenericPointCloudGrabber.h:42
ICLQt_API core::Img< T > grab(const std::string &dev, const std::string &devSpec, const utils::Size &size=utils::Size::null, core::format fmt=core::formatRGB, bool releaseGrabber=false)
grabs a new image from given device (affinity for floats)
Generic interface for PointCloud sources.
Definition: PointCloudGrabber.h:45
Generic interface for PointCloud sources.
Definition: GenericPointCloudGrabber.h:41