segenerator.h
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 00029 class SEGenerator { 00030 private: 00031 SEGenerator(); 00032 00033 00034 public: 00035 00036 static unsigned char * linear(unsigned int width, unsigned int height, 00037 unsigned int *proposed_center_x, 00038 unsigned int *proposed_center_y, 00039 float slope_angle_rad); 00040 00041 static unsigned char * square(unsigned int width, unsigned int height); 00042 00043 00044 static void drawSE(unsigned char *yuv422planar_buffer, unsigned char *mask, 00045 unsigned int width, unsigned int height); 00046 static void drawSEbw(unsigned char *yuv422planar_buffer, unsigned char *mask, 00047 unsigned int width, unsigned int height); 00048 00049 }; 00050 00051 00052 00053 00054 #endif

