Image Component Library (ICL)
EuclideanBlobSegmenter.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/EuclideanBlobSegmenter.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 <ICLCore/DataSegment.h>
34 
35 namespace icl{
36  namespace geom{
40 
41  public:
42 
43  enum Mode {BEST, GPU, CPU};
44 
46 
48  EuclideanBlobSegmenter(Mode mode=BEST);
49 
52 
54 
60  core::Img8u apply(core::DataSegment<float,4> xyz, const core::Img8u &edgeImg, const core::Img32f &depthImg, bool stabelize=true, bool useROI=false);
61 
63 
69  void setROI(float xMin, float xMax, float yMin, float yMax, float zMin, float zMax);
70 
72 
73  void setMinClusterSize(unsigned int size);
74 
76 
79  void setRansacParams(float distance, int passes, int subset);
80 
82 
83  void setBLOBSeuclDistance(int distance);
84 
86 
87  core::Img32s getLabelImage(bool stabelize);
88 
90 
91  core::Img8u getColoredLabelImage(bool stabelize);
92 
94 
95  std::vector<std::vector<int> > getSurfaces();
96 
98 
99  std::vector<std::vector<int> > getBlobs();
100 
101 
102  private:
103 
104  struct Data;
105  Data *m_data;
106 
107  void regionGrow(bool useROI);
108 
109  void blobSegmentation(bool useROI);
110 
111  void regionGrowBlobs();
112 
113  };
114  } // namespace geom
115 }
undocument this line if you encounter any issues!
Definition: Any.h:37
#define ICLGeom_API
Definition: CompatMacros.h:179
Definition: EuclideanBlobSegmenter.h:39
Data * m_data
internal data type
Definition: EuclideanBlobSegmenter.h:104
Mode
Definition: EuclideanBlobSegmenter.h:43