imageprocessor.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005-2011 LpzRobots development team                    *
00003  *    Georg Martius  <georg dot martius at web dot de>                     *
00004  *    Frank Guettler <guettler at informatik dot uni-leipzig dot de        *
00005  *    Frank Hesse    <frank at nld dot ds dot mpg dot de>                  *
00006  *    Ralf Der       <ralfder at mis dot mpg dot de>                       *
00007  *                                                                         *
00008  *   This program is free software; you can redistribute it and/or modify  *
00009  *   it under the terms of the GNU General Public License as published by  *
00010  *   the Free Software Foundation; either version 2 of the License, or     *
00011  *   (at your option) any later version.                                   *
00012  *                                                                         *
00013  *   This program is distributed in the hope that it will be useful,       *
00014  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00015  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00016  *   GNU General Public License for more details.                          *
00017  *                                                                         *
00018  *   You should have received a copy of the GNU General Public License     *
00019  *   along with this program; if not, write to the                         *
00020  *   Free Software Foundation, Inc.,                                       *
00021  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00022  *                                                                         *
00023  ***************************************************************************/
00024 #ifndef __IMAGEPROCESSOR
00025 #define __IMAGEPROCESSOR
00026 
00027 #include <osg/Image>
00028 #include "camera.h"
00029 
00030 namespace lpzrobots {
00031 
00032   /**
00033      Base class for image processing units. 
00034      The result of a processing is an image (returned by init)
00035      The source for processing can be any image from previous
00036      units. An implemenation must store the pointers to the source(s)
00037      and must also hold a destination image.    
00038   */
00039   struct ImageProcessor {
00040     ImageProcessor() {};
00041     virtual ~ImageProcessor() {};
00042 
00043     /**
00044        initialization with all images so far. The last image in the list
00045        is probably the one to use for processing. (output from last processor)
00046        @return result image structure of this processor
00047     */
00048     virtual Camera::CameraImage init(const Camera::CameraImages& imgs) = 0;
00049 
00050     /// perform the image calculation here
00051     virtual void process() = 0;
00052 
00053   };
00054 
00055 }
00056 
00057 #endif
Generated on Thu Jun 28 14:45:36 2012 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.6.3