Image Component Library (ICL)
PointCloudCreator.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/PointCloudCreator.h **
10 ** Module : ICLGeom **
11 ** Authors: Christof Elbrechter, Patrick Nobou, Andre Ueckermann **
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>
35 #include <ICLGeom/Camera.h>
36 #include <ICLGeom/RGBDMapping.h>
37 
38 namespace icl{
39  namespace geom{
40 
42 
57  struct Data; // !< pimpl type
58  Data *m_data; // !< pimpl pointer
59  public:
60 
62 
68  KinectRAW11Bit
69  };
70 
73 
75  PointCloudCreator(const Camera &depthCam, DepthImageMode mode=DistanceToCamPlane);
76 
78  PointCloudCreator(const Camera &depthCam, const Camera &colorCam, DepthImageMode mode=DistanceToCamPlane);
79 
82 
84  PointCloudCreator &operator=(const PointCloudCreator &other);
85 
86 
89 
91  void init(const Camera &depthCam, DepthImageMode mode=DistanceToCamPlane);
92 
94  void init(const Camera &depthCam, const Camera &colorCam, DepthImageMode mode=DistanceToCamPlane);
95 
97 
103  void create(const core::Img32f &depthImage, PointCloudObjectBase &destination, const core::Img8u *rgbImage = 0, float depthScaling=1, bool addDepthFeature=false);
104 
106  const Camera &getDepthCamera() const;
107 
109  const Camera &getColorCamera() const ;
110 
112 
114  void setCameras(const Camera &depthCam, const Camera &colorCam);
115 
117 
120  void setDepthCamera(const Camera &depthCam);
121 
123  bool hasColorCamera() const;
124 
126 
130  void mapImage(const core::ImgBase *src, core::ImgBase **dst, const core::Img32f *depthImageMM=0);
131 
133 
134  void setUseCL(bool use);
135 
137 
140  RGBDMapping getMapping() const ;
141 
143 
148  void setFixes(float focalLengthMultiplier=1, float positionOffsetAlongNorm=0);
149 
151 
152  core::DataSegment<float,2> getColorTexturePoints();
153 
155 
156  core::DataSegment<float,2> getNormalizedColorTexturePoints();
157 
158  };
159 
160  } // namespace geom
161 }
162 
distances are given w.r.t. the camera plance
Definition: PointCloudCreator.h:67
undocument this line if you encounter any issues!
Definition: Any.h:37
Base class for point cloud data types.
Definition: PointCloudObjectBase.h:98
ICLQt_API core::Img< T > create(const std::string &name, core::format fmt=icl::core::formatRGB)
create a test image (converted to destination core::format) (affinity for floats)
#define ICLGeom_API
Definition: CompatMacros.h:179
distances are given w.r.t. the camera center
Definition: PointCloudCreator.h:66
Utility class that allows to create 3D (optionally colored) point clouds from given 2D core::depth im...
Definition: PointCloudCreator.h:56
Camera class.
Definition: Camera.h:132
Utility class for RGBDMapping.
Definition: RGBDMapping.h:46
Data * m_data
Definition: PointCloudCreator.h:57
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
DepthImageMode
Representation of the given core::depth images.
Definition: PointCloudCreator.h:65