examples/featureTracker/featuretracker.h

00001 /*
00002  *      Copyright (C) 2007, 2008. PARP Research Group.
00003  *      <http://perception.inf.um.es>
00004  *      University of Murcia, Spain.
00005  *
00006  *      This file is part of the QVision library.
00007  *
00008  *      QVision is free software: you can redistribute it and/or modify
00009  *      it under the terms of the GNU Lesser General Public License as
00010  *      published by the Free Software Foundation, version 3 of the License.
00011  *
00012  *      QVision is distributed in the hope that it will be useful,
00013  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *      GNU Lesser General Public License for more details.
00016  *
00017  *      You should have received a copy of the GNU Lesser General Public
00018  *      License along with QVision. If not, see <http://www.gnu.org/licenses/>.
00019  */
00020 
00024 
00025 #include <QMetaType>
00026 #include <QDebug>
00027 #include <QPair>
00028 
00029 #include <QVRANSAC>
00030 #include <QVPROSAC>
00031 
00032 #include <culebrillas.h>
00033 
00034 #ifndef FEATURETRACKER_H
00035 #define FEATURETRACKER_H
00036 
00037 #ifndef DOXYGEN_IGNORE_THIS
00038 class FeatureEuclideanTracker: public QVWorker
00039         {
00040         private:
00041                 QList<QPointF> lastPoints;
00042                 CulebrillaContainer culebrillas;
00043                 double ransacIterations, varIterations;
00044                 int ignoredFrames;
00045                 QVMatrix previousH;
00046 
00047         public:
00048                 FeatureEuclideanTracker(QString name);
00049                 void iterate();
00050         };
00051 
00052 class FeatureEuclideanMatcher: public QVWorker
00053         {
00054         private:
00055                 QList<QPointF> lastPoints;
00056                 CulebrillaContainer culebrillas;
00057                 double ransacIterations, varIterations;
00058                 int ignoredFrames;
00059                 QVMatrix previousH;
00060 
00061         public:
00062                 FeatureEuclideanMatcher(QString name);
00063                 void iterate();
00064         };
00065 #endif
00066 
00067 Q_DECLARE_METATYPE(QList<sFloat>);
00068 
00069 #endif