Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
FiducialDetectorPluginForQuads.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/FiducialDetectorPluginForQua **
00010 **          ds.h                                                   **
00011 ** Module : ICLMarkers                                             **
00012 ** Authors: Christof Elbrechter                                    **
00013 **                                                                 **
00014 **                                                                 **
00015 ** GNU LESSER GENERAL PUBLIC LICENSE                               **
00016 ** This file may be used under the terms of the GNU Lesser General **
00017 ** Public License version 3.0 as published by the                  **
00018 **                                                                 **
00019 ** Free Software Foundation and appearing in the file LICENSE.GPL  **
00020 ** included in the packaging of this file.  Please review the      **
00021 ** following information to ensure the license requirements will   **
00022 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt                **
00023 **                                                                 **
00024 ** The development of this software was supported by the           **
00025 ** Excellence Cluster EXC 277 Cognitive Interaction Technology.    **
00026 ** The Excellence Cluster EXC 277 is a grant of the Deutsche       **
00027 ** Forschungsgemeinschaft (DFG) in the context of the German       **
00028 ** Excellence Initiative.                                          **
00029 **                                                                 **
00030 ********************************************************************/
00031 
00032 #pragma once
00033 
00034 #include <ICLMarkers/FiducialDetectorPlugin.h>
00035 
00036 namespace icl{
00037   namespace markers{
00038     
00040     class FiducialDetector;
00044 
00045     class FiducialDetectorPluginForQuads : public FiducialDetectorPlugin{
00047       struct Data;
00048       
00050       Data *data;
00051   
00052       protected:
00053   
00055       FiducialDetectorPluginForQuads();
00056       public:
00057   
00059       friend class icl::markers::FiducialDetector;
00060   
00062       ~FiducialDetectorPluginForQuads();
00063       
00064       // use the edges
00065       virtual void getKeyPoints2D(std::vector<Fiducial::KeyPoint> &dst, FiducialImpl &impl);
00066       virtual void getFeatures(Fiducial::FeatureSet &dst);
00067       virtual void detect(std::vector<FiducialImpl*> &dst, const core::Img8u &image);
00068   
00070       virtual SourceImageType getPreProcessing() const {  return Gray;  }
00071       
00073 
00084       virtual void addOrRemoveMarkers(bool add, const utils::Any &which, const utils::ParamList &params) = 0;
00085   
00087       std::string getIntermediateImageNames() const;
00088       
00090 
00091       const core::ImgBase *getIntermediateImage(const std::string &name) const throw (utils::ICLException);
00092   
00094 
00097       virtual void prepareForPatchClassification(){}
00098   
00100       virtual FiducialImpl *classifyPatch(const core::Img8u &image, int *rot, bool returnRejectedQuads, cv::ImageRegion r) = 0;
00101       
00103 
00104       virtual void getQuadRectificationParameters(utils::Size &markerSizeWithBorder,
00105                                                   utils::Size &markerSizeWithoutBorder) = 0;
00106           
00107     };
00108   } // namespace markers
00109 }
00110 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines