Image Component Library (ICL)
ConfigurableDepthImageSegmenter.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/ConfigurableDepthImageSegmenter.h **
10 ** Module : ICLGeom **
11 ** Authors: 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 
36 #include <ICLUtils/Configurable.h>
37 #include <ICLCore/DataSegment.h>
38 #include <ICLGeom/Camera.h>
39 
40 namespace icl{
41  namespace geom{
45 
46  public:
47 
48  enum Mode {BEST, GPU, CPU};
49 
51 
54  ConfigurableDepthImageSegmenter(Mode mode, Camera depthCam,
57  ConfigurableDepthImageSegmenter(Mode mode, Camera depthCam, Camera colorCam,
60 
63 
65 
67  void apply(const core::Img32f &depthImage, PointCloudObject &obj);
68 
69  std::vector<geom::SurfaceFeatureExtractor::SurfaceFeature> getSurfaceFeatures();
70 
72 
73  const core::Img8u getNormalImage();
74 
76 
77  const core::Img8u getEdgeImage();
78 
80 
81  core::Img32s getLabelImage();
82 
83  const core::DataSegment<float,4> getNormalSegment();
84 
86 
87  core::Img8u getColoredLabelImage();
88 
91  const core::Img32f getAngleImage();
92 
94 
95  core::Img8u getMappedColorImage(const core::Img8u &image);
96 
97  void mapImageToDepth(const core::ImgBase *src, core::ImgBase **dst);
98 
100 
101  std::vector<std::vector<int> > getSurfaces();
102 
104 
105  std::vector<std::vector<int> > getSegments();
106 
107  void setNormals(core::DataSegment<float,4> &normals);
108 
109  void setEdgeSegData(core::Img8u &edges, core::Img8u &normal_img);
110 
111  void setUseExternalEdges(bool use_external_edges);
112 
113  private:
114 
115  void initProperties();
116 
117  struct Data;
118  Data *m_data;
119 
120  };
121  } // namespace geom
122 }
undocument this line if you encounter any issues!
Definition: Any.h:37
default kinect raw values in range [0,2047]
Definition: PointCloudCreator.h:68
Definition: ConfigurableDepthImageSegmenter.h:44
#define ICLGeom_API
Definition: CompatMacros.h:179
Camera class.
Definition: Camera.h:132
Base implementation of the SceneObjectBase interface for compability with common icl::SceneObjects.
Definition: PointCloudObject.h:52
Data * m_data
internal data type
Definition: ConfigurableDepthImageSegmenter.h:117
Interface for classes that can be configured from configuration-files and GUI-Components.
Definition: Configurable.h:194
Mode
Definition: ConfigurableDepthImageSegmenter.h:48
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