squares.hh

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) Gostai S.A.S., 2007.  All rights reserved.
00003  *
00004  * This software is provided "as is" without warranty of any kind,
00005  * either expressed or implied, including but not limited to the
00006  * implied warranties of fitness for a particular purpose.
00007  *
00008  * See the LICENSE file for more information.
00009  * For comments, bug reports and feedback: http://www.urbiforge.com
00010  */
00011 #ifndef SQUARES_HH_
00012 #define SQUARES_HH_
00013 
00014 #include <iostream>
00015 #include <cv.h>
00016 #include <cxcore.h>
00017 #include <highgui.h>
00018 #include <math.h>
00019 #include <vector>
00020 #include <boost/foreach.hpp>
00021 #include "visionbehavior.hpp"
00022 
00026 class           Squares : public VisionBehavior<CvSeq> {
00027 private:
00028   CvMemStorage*         storage;
00029   CvSeq*                result;
00030   int                   thresh;
00031 public:
00032                         Squares();
00033   virtual               ~Squares();
00034   virtual void          writeOn(IplImage& img) const;
00035   virtual void          actOnKeyPressed(char& key);
00036   virtual CvSeq&        getResult();
00037 private:
00038   double                angle(CvPoint*, CvPoint*, CvPoint*);
00039   virtual void          emptyResult();
00040   virtual void          compute(const IplImage& img);
00041 };
00042 
00043 #endif /* !SQUARES_HH_ */

Generated on Mon Dec 31 13:33:37 2007 for Vision by  doxygen 1.5.3