Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
MultiCamFiducialDetector.h
Go to the documentation of this file.
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.GPL  **
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 <ICLMarkers/MultiCamFiducial.h>
00034 #include <ICLUtils/Configurable.h>
00035 
00036 
00037 namespace icl{
00038   namespace markers{
00039   
00041 
00062     class MultiCamFiducialDetector : public utils::Configurable{
00063       struct Data;  
00064       Data *m_data; 
00065       
00067       void property_callback(const Property &p);
00068       
00069       public:
00070       
00072       MultiCamFiducialDetector();
00073       
00075 
00076       MultiCamFiducialDetector(const std::string &pluginType,
00077                                const utils::Any &markersToLoad,
00078                                const utils::ParamList &params,
00079                                const std::vector<geom::Camera*> &cams,
00080                                bool syncProperties=true,
00081                                bool deepCopyCams=false) throw (utils::ICLException);
00082   
00084 
00097       void init(const std::string &pluginType,
00098                 const utils::Any &markersToLoad,
00099                 const utils::ParamList &params,
00100                 const std::vector<geom::Camera*> &cams,
00101                 bool syncProperties=true,
00102                 bool deepCopyCams=false) throw (utils::ICLException);
00103       
00104       
00106 
00107       const std::vector<MultiCamFiducial> &detect(const std::vector<const core::ImgBase*> &images, 
00108                                                   int minCamsFound=1) throw (utils::ICLException);
00109       
00111       int getNumCameras() const;
00112       
00114       const FiducialDetector &getFiducialDetector(int idx) const;
00115   
00117       FiducialDetector &getFiducialDetector(int idx);
00118       
00120       void loadMarkers(const utils::Any &which, const utils::ParamList &params) throw (utils::ICLException);
00121   
00123       void unloadMarkers(const utils::Any &which);
00124       
00126 
00141       std::string getIntermediateImageNames() const;
00142       
00144       const core::ImgBase *getIntermediateImage(const std::string &name) const throw (utils::ICLException);
00145       
00147       static int getCameraIDFromIntermediteImageName(const std::string &name);
00148     };  
00149   
00150   } // namespace markers
00151 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines