Image Component Library (ICL)
FiducialDetector.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 : ICLMarkers/src/ICLMarkers/FiducialDetector.h **
10 ** Module : ICLMarkers **
11 ** Authors: Christof Elbrechter **
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 <ICLUtils/Configurable.h>
35 #include <ICLUtils/Uncopyable.h>
36 #include <ICLUtils/Any.h>
37 #include <ICLUtils/ParamList.h>
38 
39 #include <ICLGeom/Camera.h>
40 
41 #include <ICLMarkers/Fiducial.h>
42 
43 
44 
45 namespace icl{
46  namespace markers{
49 
51  struct Data;
52 
54  Data *data;
55 
56  public:
57 
59 
98  FiducialDetector(const std::string &plugin="bch",
99  const utils::Any &markersToLoad=utils::Any(),
100  const utils::ParamList &params=utils::ParamList(),
101  const geom::Camera *camera=0) ;
102 
104  virtual ~FiducialDetector();
105 
107  const std::string &getPluginType() const;
108 
110 
114  void setCamera(const geom::Camera &camera);
115 
117  const geom::Camera &getCamera() const ;
118 
120 
146  void loadMarkers(const utils::Any &which, const utils::ParamList &params=utils::ParamList()) ;
147 
148 
150 
152  void unloadMarkers(const utils::Any &which);
153 
155 
159  const std::vector<Fiducial> &detect(const core::ImgBase *image) ;
160 
162  Fiducial::FeatureSet getFeatures() const;
163 
165 
169  std::string getIntermediateImageNames() const;
170 
172 
175  const core::ImgBase *getIntermediateImage(const std::string &name) const ;
176 
177 
179 
201  core::Img8u createMarker(const utils::Any &whichOne,const utils::Size &size, const utils::ParamList &params);
202 
204  FiducialDetectorPlugin* getPlugin();
205  };
206 
207  } // namespace markers
208 }
209 
undocument this line if you encounter any issues!
Definition: Any.h:37
Class interface for un-copyable classes.
Definition: Uncopyable.h:64
std::bitset<(int) FeatureCount > FeatureSet
FeatureSet class.
Definition: Fiducial.h:80
Camera class.
Definition: Camera.h:132
Utility structure that utilizes an std::map as parameter list.
Definition: ParamList.h:44
Size class of the ICL.
Definition: Size.h:61
Interface for classes that can be configured from configuration-files and GUI-Components.
Definition: Configurable.h:194
Main Fiducial Detector class.
Definition: FiducialDetector.h:48
#define ICLMarkers_API
Definition: CompatMacros.h:180
Simple generic data type implementation that uses a string based data representation.
Definition: Any.h:109
Data * data
hidden data pointer
Definition: FiducialDetector.h:51
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
Generic Interface class for FiducialDetector plugins.
Definition: FiducialDetectorPlugin.h:49