Image Component Library (ICL)
FiducialDetectorPlugin.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/FiducialDetectorPlugin.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/Any.h>
35 #include <ICLUtils/Configurable.h>
36 #include <ICLUtils/ParamList.h>
37 
38 #include <ICLCore/Img.h>
39 
40 #include <ICLGeom/Camera.h>
42 
44 
45 namespace icl{
46  namespace markers{
47 
51 
54 
57 
58 
61 
64 
66 
73  virtual void getCenter2D(utils::Point32f &dst, FiducialImpl &impl);
74 
76  virtual void getRotation2D(float &dst, FiducialImpl &impl);
77 
79 
81  virtual void getCorners2D(std::vector<utils::Point32f> &dst, FiducialImpl &impl);
82 
84 
87  virtual void getKeyPoints2D(std::vector<Fiducial::KeyPoint> &dst, FiducialImpl &impl);
88 
90 
96  virtual void getCenter3D(geom::Vec &dst, FiducialImpl &impl);
97 
99 
105  virtual void getRotation3D(geom::Vec &dst, FiducialImpl &impl);
106 
108 
114  virtual void getPose3D(geom::Mat &dst, FiducialImpl &impl);
115 
121  };
122 
125  return Binary;
126  }
127 
129  virtual void getFeatures(Fiducial::FeatureSet &dst)=0;
130 
132  virtual void detect(std::vector<FiducialImpl*> &dst, const core::Img8u &image)=0;
133 
135  virtual void addOrRemoveMarkers(bool add, const utils::Any &which, const utils::ParamList &params)=0;
136 
138 
139  virtual std::string getName(const FiducialImpl *impl);
140 
142 
145  virtual std::string getIntermediateImageNames() const{ return ""; }
146 
148 
153  virtual const core::ImgBase *getIntermediateImage(const std::string &name) const {
154  throw utils::ICLException("FiducialDetectorPlugin: no intermediate image is associated with givne name '" + name + "'");
155  return 0;
156  }
157 
159 
160  static std::vector<int> parse_list_str(const utils::Any &s);
161 
164  throw utils::ICLException("FiducialDetectorPlugin::createMarker seems to be not implemented for this marker type");
165  return core::Img8u();
166  }
167  };
168 
169  } // namespace markers
170 }
171 
undocument this line if you encounter any issues!
Definition: Any.h:37
math::FixedColVector< icl8u, 3 > Color
Default color type of the ICL.
Definition: Color.h:42
std::bitset<(int) FeatureCount > FeatureSet
FeatureSet class.
Definition: Fiducial.h:80
virtual ~FiducialDetectorPlugin()
virtual Destructor
Definition: FiducialDetectorPlugin.h:63
detect must be called with an already binarized image (default)
Definition: FiducialDetectorPlugin.h:118
geom::Camera * camera
Camera structure for 3D feature estimation.
Definition: FiducialDetectorPlugin.h:53
SourceImageType
Enumeration for differnt source image types.
Definition: FiducialDetectorPlugin.h:117
virtual core::Img8u createMarker(const utils::Any &, const utils::Size &, const utils::ParamList &)
interface for creating an image of a specific marker
Definition: FiducialDetectorPlugin.h:163
virtual const core::ImgBase * getIntermediateImage(const std::string &name) const
returns the intermediate image, that is associated with the given name
Definition: FiducialDetectorPlugin.h:153
virtual SourceImageType getPreProcessing() const
returns Binary (as default)
Definition: FiducialDetectorPlugin.h:124
Camera class.
Definition: Camera.h:132
detect must be called with gray scale image
Definition: FiducialDetectorPlugin.h:119
Utility structure that utilizes an std::map as parameter list.
Definition: ParamList.h:44
Img< icl8u > Img8u
typedef for 8bit integer images
Definition: Types.h:42
virtual std::string getIntermediateImageNames() const
optionall returns a (comma separated) list of intermediate images
Definition: FiducialDetectorPlugin.h:145
Size class of the ICL.
Definition: Size.h:61
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
Interface for classes that can be configured from configuration-files and GUI-Components.
Definition: Configurable.h:194
Base class for Exception handling in the ICL.
Definition: Exception.h:42
Utility class that allows for 6D pose estimation from a set of at least 4 coplanar points.
Definition: CoplanarPointPoseEstimator.h:98
Hidden implemetation for fiduical classes.
Definition: FiducialImpl.h:76
geom::CoplanarPointPoseEstimator poseEst
for 3D pose estimation
Definition: FiducialDetectorPlugin.h:56
#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
Generic Interface class for FiducialDetector plugins.
Definition: FiducialDetectorPlugin.h:49