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

maskBottom_Filter.cpp

Go to the documentation of this file.
00001 #include "maskBottom_Filter.h"
00002 
00003 maskBottom_Filter::maskBottom_Filter() :
00004     phFilter("maskBottom_Filter")
00005 {
00006     this->m_format = phImageValidFormatMask;
00007 }
00008 
00009 maskBottom_Filter::~maskBottom_Filter() {}
00010 
00011 phFilter *maskBottom_Filter::cloneFilter()
00012 {
00013     return (phFilter *)new maskBottom_Filter();
00014 }
00015 
00016 int maskBottom_Filter::filter()
00017 {
00018     phFUNCTION("maskBottom_Filter::filter")
00019    
00020     /* defined before being called:
00021      *  width
00022      *  height
00023      *  depth
00024      *  Image
00025      */
00026     const int numrows = 10;
00027    
00028     memset( &Image[ (height - numrows)*width*depth ] , 0, depth * width * numrows );
00029 
00030     /* make sure to free up any space here, not including Image */
00031     
00032     return phSUCCESS;
00033 }
00034 
00035 




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:05 2007 for phission by  doxygen 1.4.4