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

match_Filter.h

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  ---------------------------------------------------------------------------
00010     <Add other copyrights here> 
00011  ---------------------------------------------------------------------------
00012 
00013     This file is part of Phission.
00014 
00015     Phission is free software; you can redistribute it and/or modify
00016     it under the terms of the GNU Lesser General Public License as published by
00017     the Free Software Foundation; either version 2 of the License, or
00018     (at your option) any later version.
00019 
00020     Phission is distributed in the hope that it will be useful,
00021     but WITHOUT ANY WARRANTY; without even the implied warranty of
00022     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023     GNU Lesser General Public License for more details.
00024 
00025     You should have received a copy of the GNU Lesser General Public License
00026     along with Phission; if not, write to the Free Software
00027     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00028 
00029  ---------------------------------------------------------------------------*/
00030 #ifndef _MATCH_FILTER_H
00031 #define _MATCH_FILTER_H
00032 
00038 #include <phFilter.h>
00039 
00045 /* ------------------------------------------------------------------------ */
00046 #ifndef phCHANNEL_ALL
00047 #define phCHANNEL_ALL -1
00048 #endif
00049 
00050 typedef enum 
00051 { 
00052     phMatchOnly     = 1, 
00053     phMatchOverlay  = 2 
00054 } phMatchFormatEnum;
00055 
00056 /* ------------------------------------------------------------------------ */
00085 PHAPI(class) match_Filter : public phFilter
00086 {
00087 protected:
00088     int m_lr;
00089     int m_lg;
00090     int m_lb;
00091             
00092     int m_hr;
00093     int m_hg;
00094     int m_hb;
00095 
00096     int m_outChannel;
00097 
00098     phMatchFormatEnum m_matchFormat;
00099 
00100 protected:
00101     int filter();
00102 
00103 public:
00104     match_Filter();
00105     match_Filter(int r, int g, int b, 
00106                  int tolerance, int outChannel = 0,
00107                  phMatchFormatEnum matchFormat = phMatchOnly);
00108     match_Filter(int lr, int lg,int lb,       
00109                  int hr, int hg, int hb,
00110                  int outChannel,
00111                  phMatchFormatEnum matchFormat = phMatchOnly);
00112     ~match_Filter();
00113     
00114     int set(int r, int g, int b, 
00115             int tolerance, int outChannel = 0,
00116                  phMatchFormatEnum matchFormat = phMatchOnly);
00117     
00118     int set(int lr, int lg,int lb,       
00119             int hr, int hg, int hb,
00120             int outChannel,
00121             phMatchFormatEnum matchFormat = phMatchOnly);
00122     int setMatchFormat(phMatchFormatEnum matchFormat);
00123     
00124     phFilter *cloneFilter();
00125 
00126 };
00127  /* ImageProcessing */
00129 
00130 #endif /* _MATCH_FILTER_H */




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