OmniConfig.hh

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) Massimo Cora' 2005 <maxcvs@email.it>
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00019 
00020 #ifndef __OMNI_CONFIG_H__
00021 #define __OMNI_CONFIG_H__
00022 
00023 #ifndef WIN32
00024 #include <unistd.h>
00025 #endif
00026 
00027 #include <stdio.h>
00028 #include "OmniCallback.hh"
00029 
00034 #define OMNISTUFF_DEBUG
00035 
00037 
00038 
00043 //#define HAAR_DEBUG
00044 
00049 #define SHOW_TRACKED_FACES
00050 
00055 //#define SHOW_DETECTED_FACES
00056 
00061 //#define SHOW_GREEN_MARKERS
00062 
00067 //#define SHOW_MAIN_VIDEO
00068 
00075 //#define FACE_TRACK_ANGLE_WINDOW                       0.523598775
00076 #define FACE_TRACK_ANGLE_WINDOW                 0.59
00077 
00082 #define TRACK_WINDOW_HITRATE                    0.95
00083 
00088 #define FREEZE_FRAME_BOUND                              20
00089 
00092 #ifndef         WAIT_KEY_VALUE
00093         #ifdef WIN32    
00094                 #define         WAIT_KEY_VALUE                          1
00095         #else           // LINUX
00096                 #define         WAIT_KEY_VALUE                          20
00097         #endif
00098 #endif
00099 
00101 #ifndef CV_WAIT_KEY
00102         #ifdef __LINUX__        
00103                 #define CV_WAIT_KEY             usleep  
00104         #else
00105                 #define CV_WAIT_KEY             cvWaitKey
00106         #endif
00107 #endif
00108 
00109 
00111 #ifndef         DEBUG_PRINT
00112         #ifdef OMNISTUFF_DEBUG
00113                 #define DEBUG_PRINT printf
00114         #else
00115                 #define DEBUG_PRINT(...)
00116         #endif
00117 #endif
00118 
00119 
00120 #endif  /* __OMNI_CONFIG_H__ */
00121 
00122 
00123 

Generated on Tue Dec 26 10:32:38 2006 for Omnimeeting by  doxygen 1.4.7