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

phFilter.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 _PHFILTER_H
00027 #define _PHFILTER_H
00028 
00029 #include <phStdint.h>
00030 #include <ImageUtil.h>
00031 #include <phMutex.h>
00032 #include <phImage.h>
00033 
00034 /* ------------------------------------------------------------------------ */
00040 PHAPI(class) phFilter : public phMutex
00041 {
00042 protected:
00043     phImage *m_workspaceImage;
00044     phImage *m_originalImage;
00049     uint32_t m_format;
00050     uint32_t m_filterEnabled;
00051     
00052     uint32_t width;
00053     uint32_t height;
00054     uint32_t depth;
00058     uint32_t format;
00059     uint8_t *Image;
00060     uint8_t *OriginalImage;
00061    
00065     int setFilterVars();
00066 
00076     virtual int filter() = 0;
00077     
00086     phImage     m_monitorOutput;
00098     phImage    *m_monitorSource;
00111     virtual int assignMonitorSource();
00120     int         updateMonitorOutput();
00121 
00128     uint32_t    queryFormat();
00134     int         verifyFormat( uint32_t format );
00135     
00136 public:
00151     phFilter( const char *name );
00152     virtual ~phFilter();
00153     
00158     virtual phFilter *cloneFilter() = 0;
00159 
00166     int         setWorkspace( phImage *workspaceImage );
00173     int         setOriginal ( phImage *originalImage  );
00174 
00179     int         resetImage();
00180 
00188     int         enable      ();
00195     int         disable     ();
00200     uint32_t    isEnabled   ();
00201     
00217     int         process();
00218    
00227     phLiveObject *getLiveSourceOutput();
00228 };
00229 
00230 #endif /* _PHFILTER_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:01 2007 for phission by  doxygen 1.4.4