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

hsvsegment_Filter.h

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------------
00002     Phission :
00003         Realtime Vision Processing System
00004 
00005     Copyright (C) 2003 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 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 General Public License for more details.
00020 
00021     You should have received a copy of the GNU 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 #ifndef _HSVSEGMENT_FILTER_H
00027 #define _HSVSEGMENT_FILTER_H
00028 
00029 #include <phFilter.h>
00030 
00031 /* ------------------------------------------------------------------------ */
00032 class hsvsegment_Filter : public phFilter
00033 {
00034 private:
00035     int m_h;
00036     int m_s;
00037     int m_v;
00038     int m_lh;
00039     int m_ls;
00040     int m_lv;
00041     int m_uh;
00042     int m_us;
00043     int m_uv;
00044 
00045 protected:
00046     int filter();
00047 
00048 public:
00049     /* -1 or > depth == all channels */
00050     hsvsegment_Filter(int h, int s, int v,
00051                    int minh = 0, int mins = 10, int minv = 10,
00052                    int maxh = 255, int maxs = 255, int maxv = 255 );
00053     ~hsvsegment_Filter();
00054     
00055     int set(int h, int s, int v,
00056             int minh = 10, int mins = 10, int minv = 10,
00057             int maxh = 255, int maxs = 255, int maxv = 255);
00058     
00059     phFilter *cloneFilter();
00060 
00061 };
00062 
00063 #endif /* _HSVSEGMENT_FILTER_H */
00064 




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