TrackerPsa.h
Go to the documentation of this file.
00001 /*
00002  * This file is part of ALVAR, A Library for Virtual and Augmented Reality.
00003  *
00004  * Copyright 2007-2012 VTT Technical Research Centre of Finland
00005  *
00006  * Contact: VTT Augmented Reality Team <alvar.info@vtt.fi>
00007  *          <http://www.vtt.fi/multimedia/alvar.html>
00008  *
00009  * ALVAR is free software; you can redistribute it and/or modify it under the
00010  * terms of the GNU Lesser General Public License as published by the Free
00011  * Software Foundation; either version 2.1 of the License, or (at your option)
00012  * any later version.
00013  *
00014  * This library is distributed in the hope that it will be useful, but WITHOUT
00015  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00016  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
00017  * for more details.
00018  *
00019  * You should have received a copy of the GNU Lesser General Public License
00020  * along with ALVAR; if not, see
00021  * <http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html>.
00022  */
00023 
00024 #ifndef TRACKERPSA_H
00025 #define TRACKERPSA_H
00026 
00027 #include "Tracker.h"
00028 
00035 namespace alvar {
00036 
00042 class ALVAR_EXPORT TrackerPsa : public Tracker {
00043 protected:
00044         int max_shift;
00045         int x_res, y_res;
00046         long *hor, *horprev;
00047         long *ver, *verprev;
00048         long framecount;
00049 
00050 public:
00052         double xd;
00054         double yd;
00056         TrackerPsa(int _max_shift = 50);
00058         ~TrackerPsa();
00060         double Track(IplImage *img);
00061 
00062         virtual void Compensate(double *x, double *y);
00063 };
00064 
00068 class ALVAR_EXPORT TrackerPsaRot : public TrackerPsa {
00069 protected:
00070         double *rot, *rotprev;
00071         int *rot_count;
00072 
00073 public:
00075         double rotd;
00077         TrackerPsaRot(int _max_shift = 50);
00079         ~TrackerPsaRot();
00081         double Track(IplImage *img);
00082 
00083         virtual void Compensate(double *x, double *y);
00084 };
00085 
00086 } // namespace alvar
00087 
00088 #endif
00089 
00090 


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Thu Feb 16 2017 03:23:02