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

cv_canny_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     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 #ifndef _CV_CANNY_FILTER_H
00027 #define _CV_CANNY_FILTER_H
00028 
00034 #include <phFilter.h>
00035 
00041 /* ------------------------------------------------------------------------ */
00060 PHAPI(class) cv_canny_Filter : public phFilter
00061 {
00062 private:
00063     int             m_lowThreshold;
00064     int             m_highThreshold;
00065     uint8_t        *m_edge;
00066     uint32_t        m_edgeSize;
00067     int             m_aperture;
00068 
00069     uint32_t        m_lastDepth;
00070     uint32_t        m_lastWidth;
00071     uint32_t        m_lastHeight;
00072     
00073     /* These are cast to (IplImage *) in the source code */
00074     void           *m_cv_input;
00075     void           *m_cv_gray;
00076     void           *m_cv_edges;
00077     void           *m_cv_output;
00078 
00079 protected:
00080     int filter();
00081 
00082 public:
00083     cv_canny_Filter( int lowThreshold   = 40,
00084                      int highThreshold  = 120,
00085                      int aperture       = 3     );
00086     ~cv_canny_Filter();
00087     
00088     int set( int lowThreshold   = 40,
00089              int highThreshold  = 120,
00090              int aperture       = 3     );
00091 
00092     phFilter *cloneFilter();
00093 };
00094  /* ImageProcessing */
00096 
00097 #endif /* _CANNY_CVFILTER_H */
00098 




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