shapemodel.h

00001 
00002 /***************************************************************************
00003  *  shapemodel.h - Abstract class defining a shape model
00004  *
00005  *  Created: Tue May 03 19:50:02 2005
00006  *  Copyright  2005-2007  Tim Niemueller [www.niemueller.de]
00007  *             2005       Martin Heracles <Martin.Heracles@rwth-aachen.de>
00008  *             2005       Hu Yuxiao      <Yuxiao.Hu@rwth-aachen.de>
00009  *
00010  ****************************************************************************/
00011 
00012 /*  This program is free software; you can redistribute it and/or modify
00013  *  it under the terms of the GNU General Public License as published by
00014  *  the Free Software Foundation; either version 2 of the License, or
00015  *  (at your option) any later version. A runtime exception applies to
00016  *  this software (see LICENSE.GPL_WRE file mentioned below for details).
00017  *
00018  *  This program is distributed in the hope that it will be useful,
00019  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  *  GNU Library General Public License for more details.
00022  *
00023  *  Read the full text in the LICENSE.GPL_WRE file in the doc directory.
00024  */
00025 
00026 #ifndef __FIREVISION_MODELS_SHAPE_SHAPEMODEL_H_
00027 #define __FIREVISION_MODELS_SHAPE_SHAPEMODEL_H_
00028 
00029 #include <string>
00030 #include <vector>
00031 
00032 namespace firevision {
00033 #if 0 /* just to make Emacs auto-indent happy */
00034 }
00035 #endif
00036 
00037 class ROI;
00038 
00039 class Shape
00040 {
00041  public:
00042   virtual ~Shape();
00043 
00044   virtual void setMargin( unsigned int margin )                      = 0;
00045   virtual bool isClose(unsigned int in_roi_x, unsigned int in_roi_y) = 0;
00046 
00047 };
00048 
00049 class ShapeModel
00050 {
00051 public:
00052   virtual   ~ShapeModel();
00053   virtual   std::string            getName(void)        const                     = 0;
00054   virtual   int                    parseImage( unsigned char* buffer, ROI *roi )  = 0;
00055   virtual   int                    getShapeCount(void) const                      = 0;
00056   virtual   Shape*                 getShape(int id) const                         = 0;
00057   virtual   Shape*                 getMostLikelyShape(void) const                 = 0;
00058 };
00059 
00060 } // end namespace firevision
00061 
00062 #endif

Generated on Tue Feb 22 13:31:17 2011 for Fawkes API by  doxygen 1.4.7