Image Component Library (ICL)
MultiCamFiducialDetector.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/MultiCamFiducialDetector.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>
35 #include <ICLUtils/Configurable.h>
36 
37 
38 namespace icl{
39  namespace markers{
40 
42 
64  struct Data;
65  Data *m_data;
66 
68  void property_callback(const Property &p);
69 
70  public:
71 
74 
76 
77  MultiCamFiducialDetector(const std::string &pluginType,
78  const utils::Any &markersToLoad,
79  const utils::ParamList &params,
80  const std::vector<geom::Camera*> &cams,
81  bool syncProperties=true,
82  bool deepCopyCams=false) ;
83 
85 
98  void init(const std::string &pluginType,
99  const utils::Any &markersToLoad,
100  const utils::ParamList &params,
101  const std::vector<geom::Camera*> &cams,
102  bool syncProperties=true,
103  bool deepCopyCams=false) ;
104 
105 
107 
108  const std::vector<MultiCamFiducial> &detect(const std::vector<const core::ImgBase*> &images,
109  int minCamsFound=1) ;
110 
112  int getNumCameras() const;
113 
115  const FiducialDetector &getFiducialDetector(int idx) const;
116 
118  FiducialDetector &getFiducialDetector(int idx);
119 
121  void loadMarkers(const utils::Any &which, const utils::ParamList &params) ;
122 
124  void unloadMarkers(const utils::Any &which);
125 
127 
142  std::string getIntermediateImageNames() const;
143 
145  const core::ImgBase *getIntermediateImage(const std::string &name) const ;
146 
148  static int getCameraIDFromIntermediteImageName(const std::string &name);
149  };
150 
151  } // namespace markers
152 }
undocument this line if you encounter any issues!
Definition: Any.h:37
Fiducial detector class that allows for using multiple cameras at once for fiducial detection.
Definition: MultiCamFiducialDetector.h:63
Utility structure that utilizes an std::map as parameter list.
Definition: ParamList.h:44
Data * m_data
internal data structure
Definition: MultiCamFiducialDetector.h:64
Interface for classes that can be configured from configuration-files and GUI-Components.
Definition: Configurable.h:194
Represents a single property.
Definition: Configurable.h:200
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
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131