SurfExtractorBase.cpp
Go to the documentation of this file.
00001 /*******************************************************************************
00002  *  SurfExtractorBase.cpp
00003  *
00004  *  (C) 2008 AG Aktives Sehen <agas@uni-koblenz.de>
00005  *           Universitaet Koblenz-Landau
00006  *******************************************************************************/
00007 
00008 #include "SurfExtractorBase.h"
00009 
00010 
00011 #include <cmath>
00012 #include <sstream>
00013 #include <float.h>
00014 
00015 // #include "Architecture/Config/Config.h" // TODO
00016 // #include "Architecture/Tracer/Tracer.h" // TODO
00017 
00018 
00019 #include "../../Workers/Puma2/openCvAdaptor.h"
00020 
00021 #define THIS SurfExtractorBase
00022 
00023 #define FULL_DEBUG
00024 
00025 
00026 THIS::THIS( )
00027 {
00028   m_IndexSize = 1; // TODO Config::getInt ( "KeyPointExtraction.Surf.iIndexSize" );
00029   m_SamplingStep = 1; // TODO Config::getInt ( "KeyPointExtraction.Surf.iSamplingStep" );
00030   m_Octaves = 1; // TODO Config::getInt ( "KeyPointExtraction.Surf.iOctaves" );
00031   m_BlobResponseThreshold = 1; // TODO Config::getFloat ( "KeyPointExtraction.Surf.fBlobResponseThreshold" );
00032   m_InitLobeSize = 1; // TODO  Config::getInt ( "KeyPointExtraction.Surf.iInitLobeSize" );
00033   m_RotationInvariance = 1; // TODO  Config::getBool ( "KeyPointExtraction.Surf.bRotationInvariance" );
00034   m_Extended = 1; // TODO Config::getBool ( "KeyPointExtraction.Surf.bExtended" );
00035 }
00036 
00037 
00038 THIS::~THIS()
00039 {
00040 }
00041 
00042 
00043 THIS::THIS ( const SurfExtractorBase& other ) : KeyPointExtractor ( other )
00044 {
00045   *this = other;
00046 }
00047 
00048 
00049 
00050 SurfExtractorBase& THIS::operator= ( const SurfExtractorBase & other )
00051 {
00052   m_IndexSize = other.m_IndexSize;
00053   m_SamplingStep = other.m_SamplingStep;
00054   m_Octaves = other.m_Octaves;
00055   m_BlobResponseThreshold = other.m_BlobResponseThreshold;
00056   m_InitLobeSize = other.m_InitLobeSize;
00057   m_RotationInvariance = other.m_RotationInvariance;
00058   m_Extended = other.m_Extended;
00059   return *this;
00060 }
00061 
00062 
00063 
00064 void THIS::setSamplingStep ( int newValue )
00065 {
00066   m_SamplingStep = newValue;
00067 };
00068 
00069 void THIS::setOctaves ( int newValue )
00070 {
00071   m_Octaves = newValue;
00072 };
00073 
00074 void THIS::setBlobResponseThreshold ( double newValue )
00075 {
00076   m_BlobResponseThreshold = newValue;
00077 };
00078 
00079 void THIS::setInitLobeSize ( int newValue )
00080 {
00081   m_InitLobeSize = newValue;
00082 };
00083 
00084 void THIS::setRotationInvariance ( bool newValue )
00085 {
00086   m_RotationInvariance = newValue;
00087 };
00088 
00089 void THIS::setExtended ( bool newValue )
00090 {
00091   m_Extended = newValue;
00092 };
00093 
00094 std::string THIS::getDescription()
00095 {
00096   std::ostringstream s;
00097   s << "SURF Parameters:" << std::endl << "----------------" << std::endl;
00098 
00099   s << std::endl << "m_IndexSize: " << m_IndexSize;
00100   s << std::endl << "m_SamplingStep: " << m_SamplingStep;
00101   s << std::endl << "m_Octaves: " << m_Octaves;
00102   s << std::endl << "m_BlobResponseThreshold: " << m_BlobResponseThreshold;
00103   s << std::endl << "m_InitLobeSize: " << m_InitLobeSize;
00104   s << std::endl << "m_RotationInvariance: " << m_RotationInvariance;
00105   s << std::endl << "m_Extended: " << m_Extended;
00106 
00107   s << std::endl << std::endl;
00108 
00109   return s.str();
00110 }
00111 
00112 
00113 #undef THIS
00114 


obj_rec_gui
Author(s): AGAS/agas@uni-koblenz.de
autogenerated on Mon Oct 6 2014 02:53:43