Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

original_Filter.cpp

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------------
00002     Phission :
00003         Realtime Vision Processing System
00004 
00005     Copyright (C) 2003-2006 Philip D.S. Thoren (pthoren@cs.uml.edu)
00006     University of Massachusetts at Lowell,
00007     Laboratory for Artificial Intelligence and Robotics
00008 
00009     This file is part of Phission.
00010 
00011     Phission is free software; you can redistribute it and/or modify
00012     it under the terms of the GNU Lesser 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.
00015 
00016     Phission is distributed in the hope that it will be useful,
00017     but WITHOUT ANY WARRANTY; without even the implied warranty of
00018     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019     GNU Lesser General Public License for more details.
00020 
00021     You should have received a copy of the GNU Lesser General Public License
00022     along with Phission; if not, write to the Free Software
00023     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024 
00025  ---------------------------------------------------------------------------*/
00026 #ifdef HAVE_CONFIG_H
00027     #include <phissionconfig.h>
00028 #endif
00029 
00030 #include <phStandard.h>
00031 
00032 #include <original_Filter.h>
00033 
00034 #include <phError.h>
00035 #include <phMemory.h>
00036 #include <phPrint.h>
00037 
00038 /* ---------------------------------------------------------------------- */
00039 original_Filter::original_Filter() :
00040     phFilter("original_Filter")
00041 
00042 {
00043     /* The image is going to be replaced anyway */
00044     this->m_format = phImageValidFormatMask;
00045 }
00046 
00047 /* ---------------------------------------------------------------------- */
00048 original_Filter::~original_Filter()
00049 {
00050 }
00051 
00052 /* ------------------------------------------------------------------------ */
00053 phFilter *original_Filter::cloneFilter()
00054 {
00055     return (phFilter *)new original_Filter();
00056 }
00057 
00058 /* ---------------------------------------------------------------------- */
00059 int original_Filter::filter()
00060 {
00061     phFUNCTION("original_Filter::filter")
00062    
00063     /* defined before being called:
00064      *  width
00065      *  height
00066      *  depth
00067      *  Image
00068      */
00069     
00070     /* Begin Filter */
00071     
00072     this->resetImage();
00073     
00074     /* End Filter */
00075     
00076     /* make sure to free up any space here, not including Image */
00077     
00078     return phSUCCESS;
00079     
00080 #if 0
00081 /* Comment this back in if you use any macros that jump to here, ie phCHECK_RC,
00082  * or phCHECK_PTR */
00083 
00084 error:
00085     /* make sure to free up any space here, not including Image */
00086     
00087     return phFAIL;
00088     
00089 #endif
00090 }
00091 
00092 




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:44:11 2007 for phission by  doxygen 1.4.4