00001 00002 /*************************************************************************** 00003 * segenerator.h - Class that helps to create some standard structuring 00004 * elements 00005 * 00006 * Created: Wed Jun 07 10:36:55 2006 00007 * Copyright 2005-2007 Tim Niemueller [www.niemueller.de] 00008 * 00009 ****************************************************************************/ 00010 00011 /* This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. A runtime exception applies to 00015 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU Library General Public License for more details. 00021 * 00022 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00023 */ 00024 00025 #ifndef __FIREVISION_FILTERS_MORPHOLOGY_SEGENERATOR_H_ 00026 #define __FIREVISION_FILTERS_MORPHOLOGY_SEGENERATOR_H_ 00027 00028 namespace firevision { 00029 #if 0 /* just to make Emacs auto-indent happy */ 00030 } 00031 #endif 00032 00033 class SEGenerator { 00034 private: 00035 SEGenerator(); 00036 00037 00038 public: 00039 00040 static unsigned char * linear(unsigned int width, unsigned int height, 00041 unsigned int *proposed_center_x, 00042 unsigned int *proposed_center_y, 00043 float slope_angle_rad); 00044 00045 static unsigned char * square(unsigned int width, unsigned int height); 00046 00047 00048 static void drawSE(unsigned char *yuv422planar_buffer, unsigned char *mask, 00049 unsigned int width, unsigned int height); 00050 static void drawSEbw(unsigned char *yuv422planar_buffer, unsigned char *mask, 00051 unsigned int width, unsigned int height); 00052 00053 }; 00054 00055 } // end namespace firevision 00056 00057 #endif