Image Component Library (ICL)
|
00001 /******************************************************************** 00002 ** Image Component Library (ICL) ** 00003 ** ** 00004 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld ** 00005 ** Neuroinformatics Group ** 00006 ** Website: www.iclcv.org and ** 00007 ** http://opensource.cit-ec.de/projects/icl ** 00008 ** ** 00009 ** File : ICLMarkers/src/ICLMarkers/MultiCamFiducialDetector.h ** 00010 ** Module : ICLMarkers ** 00011 ** Authors: Christof Elbrechter ** 00012 ** ** 00013 ** ** 00014 ** GNU LESSER GENERAL PUBLIC LICENSE ** 00015 ** This file may be used under the terms of the GNU Lesser General ** 00016 ** Public License version 3.0 as published by the ** 00017 ** ** 00018 ** Free Software Foundation and appearing in the file LICENSE.LGPL ** 00019 ** included in the packaging of this file. Please review the ** 00020 ** following information to ensure the license requirements will ** 00021 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt ** 00022 ** ** 00023 ** The development of this software was supported by the ** 00024 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. ** 00025 ** The Excellence Cluster EXC 277 is a grant of the Deutsche ** 00026 ** Forschungsgemeinschaft (DFG) in the context of the German ** 00027 ** Excellence Initiative. ** 00028 ** ** 00029 ********************************************************************/ 00030 00031 #pragma once 00032 00033 #include <ICLUtils/CompatMacros.h> 00034 #include <ICLMarkers/MultiCamFiducial.h> 00035 #include <ICLUtils/Configurable.h> 00036 00037 00038 namespace icl{ 00039 namespace markers{ 00040 00042 00063 class ICLMarkers_API MultiCamFiducialDetector : public utils::Configurable{ 00064 struct Data; 00065 Data *m_data; 00066 00068 void property_callback(const Property &p); 00069 00070 public: 00071 00073 MultiCamFiducialDetector(); 00074 00076 00077 MultiCamFiducialDetector(const std::string &pluginType, 00078 const utils::Any &markersToLoad, 00079 const utils::ParamList ¶ms, 00080 const std::vector<geom::Camera*> &cams, 00081 bool syncProperties=true, 00082 bool deepCopyCams=false) throw (utils::ICLException); 00083 00085 00098 void init(const std::string &pluginType, 00099 const utils::Any &markersToLoad, 00100 const utils::ParamList ¶ms, 00101 const std::vector<geom::Camera*> &cams, 00102 bool syncProperties=true, 00103 bool deepCopyCams=false) throw (utils::ICLException); 00104 00105 00107 00108 const std::vector<MultiCamFiducial> &detect(const std::vector<const core::ImgBase*> &images, 00109 int minCamsFound=1) throw (utils::ICLException); 00110 00112 int getNumCameras() const; 00113 00115 const FiducialDetector &getFiducialDetector(int idx) const; 00116 00118 FiducialDetector &getFiducialDetector(int idx); 00119 00121 void loadMarkers(const utils::Any &which, const utils::ParamList ¶ms) throw (utils::ICLException); 00122 00124 void unloadMarkers(const utils::Any &which); 00125 00127 00142 std::string getIntermediateImageNames() const; 00143 00145 const core::ImgBase *getIntermediateImage(const std::string &name) const throw (utils::ICLException); 00146 00148 static int getCameraIDFromIntermediteImageName(const std::string &name); 00149 }; 00150 00151 } // namespace markers 00152 }