00001 /***************************************************************** 00002 * 00003 * This file is part of the FLIRTLib project 00004 * 00005 * FLIRTLib Copyright (c) 2010 Gian Diego Tipaldi and Kai O. Arras 00006 * 00007 * This software is licensed under the "Creative Commons 00008 * License (Attribution-NonCommercial-ShareAlike 3.0)" 00009 * and is copyrighted by Gian Diego Tipaldi and Kai O. Arras 00010 * 00011 * Further information on this license can be found at: 00012 * http://creativecommons.org/licenses/by-nc-sa/3.0/ 00013 * 00014 * FLIRTLib is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied 00016 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 * PURPOSE. 00018 * 00019 *****************************************************************/ 00020 00021 00022 00023 #ifndef RANSACPRESENTER_H_ 00024 #define RANSACPRESENTER_H_ 00025 00026 #include <gui/FeatureSetMatcherPresenter.h> 00027 #include <gui/ParameterWidget.h> 00028 #include <feature/RansacFeatureSetMatcher.h> 00029 #include <QtGui/QWidget> 00030 #include <QtCore/QObject> 00031 00032 class RansacPresenter: public FeatureSetMatcherPresenter{ 00033 Q_OBJECT 00034 00035 public: 00036 RansacPresenter(RansacFeatureSetMatcher* featureSetMatcher, ParameterWidget* featureSetMatcherParameter); 00037 00038 virtual void setFeatureSetMatcher(AbstractFeatureSetMatcher* featureSetMatcher); 00039 00040 virtual void setFeatureSetMatcherParameter(ParameterWidget* peakParameter); 00041 00042 /* signals: 00043 void featureSetMatcherChanged();*/ 00044 00045 public slots: 00046 void changeParameter(const QString& name); 00047 void changeSuccessProbability(double value); 00048 void changeInlierProbability(double value); 00049 void changeDistanceThreshold(double value); 00050 void changeAdaptive(int value); 00051 00052 protected: 00053 virtual void syncronize(); 00054 virtual void reconnect(); 00055 }; 00056 00057 #endif