Image Component Library (ICL)
PointCloudNormalEstimator.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/PointCloudNormalEstimator.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 
33 #include <ICLUtils/CompatMacros.h>
34 #include <ICLGeom/GeomDefs.h>
35 #include <ICLCore/Img.h>
36 #include <ICLGeom/Camera.h>
37 #include <ICLUtils/Uncopyable.h>
38 
39 namespace icl{
40  namespace geom{
73  struct Data;
74  Data *m_data;
75 
76  public:
77 
78 
80 
84 
86  virtual ~PointCloudNormalEstimator();
87 
89 
95  const core::Img8u &calculate(const core::Img32f &depthImage, bool filter, bool average, bool gauss);
96 
98 
99  void setDepthImage(const core::Img32f &depthImg);
100 
102 
103  void applyMedianFilter();
104 
106 
107  const core::Img32f &getFilteredDepthImage();
108 
110 
112  void setFilteredDepthImage(const core::Img32f &filteredImg);
113 
115 
117  void applyNormalCalculation();
118 
120 
124  void applyTemporalNormalAveraging();
125 
127 
133  void applyGaussianNormalSmoothing();
134 
136 
137  const Vec* getNormals();
138 
140 
141  void applyWorldNormalCalculation(const Camera &cam);
142 
144 
145  const Vec* getWorldNormals();
146 
148 
149  const core::Img8u &getRGBNormalImage();
150 
152 
154  void setNormals(Vec* pNormals);
155 
157 
159  void applyAngleImageCalculation();
160 
162 
163  const core::Img32f &getAngleImage();
164 
166 
168  void setAngleImage(const core::Img32f &angleImg);
169 
171 
172  void applyImageBinarization();
173 
175 
176  const core::Img8u &getBinarizedAngleImage();
177 
179 
181  void setMedianFilterSize(int size);
182 
184 
186  void setNormalCalculationRange(int range);
187 
189 
190  void setNormalAveragingRange(int range);
191 
193 
195  void setAngleNeighborhoodMode(int mode);
196 
198 
200  void setAngleNeighborhoodRange(int range);
201 
203 
206  void setBinarizationThreshold(float threshold);
207 
209 
211  void setUseCL(bool use);
212 
214 
216  void setUseNormalAveraging(bool use);
217 
219 
221  void setUseGaussSmoothing(bool use);
222 
224 
226  bool isCLReady();
227 
229 
231  bool isCLActive();
232  };
233  } // namespace geom
234 }
undocument this line if you encounter any issues!
Definition: Any.h:37
Class interface for un-copyable classes.
Definition: Uncopyable.h:64
#define ICLGeom_API
Definition: CompatMacros.h:179
Camera class.
Definition: Camera.h:132
Size class of the ICL.
Definition: Size.h:61
ICLQt_API core::Img< T > filter(const core::Img< T > &image, const std::string &filter)
applies a filter operation on the source image (affinity for float)
Data * m_data
internal data type
Definition: PointCloudNormalEstimator.h:73
Definition: PointCloudNormalEstimator.h:72