Image Component Library (ICL)
ObjectEdgeDetectorPlugin.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/ObjectEdgeDetectorPlugin.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 
32 //Please use the ObjectEdgeDetector class.
33 //This is the interface for the ObjectEdgeDetector implementations.
34 
35 #pragma once
36 
37 #include <ICLUtils/CompatMacros.h>
38 #include <ICLGeom/GeomDefs.h>
39 #include <ICLCore/Img.h>
40 #include <ICLGeom/Camera.h>
41 #include <ICLUtils/Uncopyable.h>
42 #include <ICLCore/DataSegment.h>
43 
44 namespace icl{
45  namespace geom{
46  class ObjectEdgeDetectorPlugin : public utils::Uncopyable{
47 
48  public:
49 
50  virtual ~ObjectEdgeDetectorPlugin() {}
51 
53 
59  virtual const core::Img8u &calculate(const core::Img32f &depthImage, bool filter, bool average, bool gauss)=0;
60 
62 
63  virtual void setDepthImage(const core::Img32f &depthImg)=0;
64 
66 
67  virtual void applyMedianFilter()=0;
68 
70 
71  virtual const core::Img32f &getFilteredDepthImage()=0;
72 
74 
76  virtual void setFilteredDepthImage(const core::Img32f &filteredImg)=0;
77 
79 
81  virtual void applyNormalCalculation()=0;
82 
84 
88  virtual void applyLinearNormalAveraging()=0;
89 
91 
97  virtual void applyGaussianNormalSmoothing()=0;
98 
100 
101  virtual const core::DataSegment<float,4> getNormals()=0;
102 
104 
105  virtual void applyWorldNormalCalculation(const Camera &cam)=0;
106 
108 
109  virtual const core::DataSegment<float,4> getWorldNormals()=0;
110 
112 
113  virtual const core::Img8u &getRGBNormalImage()=0;
114 
116 
118  virtual void setNormals(core::DataSegment<float,4> pNormals)=0;
119 
121 
123  virtual void applyAngleImageCalculation()=0;
124 
126 
127  virtual const core::Img32f &getAngleImage()=0;
128 
130 
132  virtual void setAngleImage(const core::Img32f &angleImg)=0;
133 
135 
136  virtual void applyImageBinarization()=0;
137 
139 
140  virtual const core::Img8u &getBinarizedAngleImage()=0;
141 
143 
145  virtual void setMedianFilterSize(int size)=0;
146 
148 
150  virtual void setNormalCalculationRange(int range)=0;
151 
153 
154  virtual void setNormalAveragingRange(int range)=0;
155 
157 
159  virtual void setAngleNeighborhoodMode(int mode)=0;
160 
162 
164  virtual void setAngleNeighborhoodRange(int range)=0;
165 
167 
170  virtual void setBinarizationThreshold(float threshold)=0;
171 
173 
175  virtual void setUseNormalAveraging(bool use)=0;
176 
178 
180  virtual void setUseGaussSmoothing(bool use)=0;
181 
183 
185  virtual bool isCLReady()=0;
186 
187  virtual void initialize(utils::Size size)=0;
188 
189  };
190  }
191 }
192 
undocument this line if you encounter any issues!
Definition: Any.h:37
Img< icl8u > Img8u
typedef for 8bit integer images
Definition: Types.h:42
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)
Img< icl32f > Img32f
typedef for 32bit float images
Definition: Types.h:54