ModelFace.H

Go to the documentation of this file.
00001 /*!@file Gist/ModelFace.H model face parameters */
00002 
00003 // //////////////////////////////////////////////////////////////////// //
00004 // The iLab Neuromorphic Vision C++ Toolkit - Copyright (C) 2001 by the //
00005 // University of Southern California (USC) and the iLab at USC.         //
00006 // See http://iLab.usc.edu for information about this project.          //
00007 // //////////////////////////////////////////////////////////////////// //
00008 // Major portions of the iLab Neuromorphic Vision Toolkit are protected //
00009 // under the U.S. patent ``Computation of Intrinsic Perceptual Saliency //
00010 // in Visual Environments, and Applications'' by Christof Koch and      //
00011 // Laurent Itti, California Institute of Technology, 2001 (patent       //
00012 // pending; application number 09/912,225 filed July 23, 2001; see      //
00013 // http://pair.uspto.gov/cgi-bin/final/home.pl for current status).     //
00014 // //////////////////////////////////////////////////////////////////// //
00015 // This file is part of the iLab Neuromorphic Vision C++ Toolkit.       //
00016 //                                                                      //
00017 // The iLab Neuromorphic Vision C++ Toolkit is free software; you can   //
00018 // redistribute it and/or modify it under the terms of the GNU General  //
00019 // Public License as published by the Free Software Foundation; either  //
00020 // version 2 of the License, or (at your option) any later version.     //
00021 //                                                                      //
00022 // The iLab Neuromorphic Vision C++ Toolkit is distributed in the hope  //
00023 // that it will be useful, but WITHOUT ANY WARRANTY; without even the   //
00024 // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      //
00025 // PURPOSE.  See the GNU General Public License for more details.       //
00026 //                                                                      //
00027 // You should have received a copy of the GNU General Public License    //
00028 // along with the iLab Neuromorphic Vision C++ Toolkit; if not, write   //
00029 // to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,   //
00030 // Boston, MA 02111-1307 USA.                                           //
00031 // //////////////////////////////////////////////////////////////////// //
00032 //
00033 // Primary maintainer for this file: Christian Siagian <siagian@usc.edu>
00034 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/Gist/ModelFace.H $
00035 // $Id: ModelFace.H 8409 2007-05-19 04:51:53Z siagian $
00036 //
00037 
00038 #ifndef MODEL_FACE_H_DEFINED
00039 #define MODEL_FACE_H_DEFINED
00040 
00041 #define NUM_FACE_PART          3
00042 enum FacePart { EYE = 0, NOSE = 1, MOUTH = 2, L_EYE = 3, R_EYE = 4 };
00043 
00044 #define NUM_HEADER_LINE        4
00045 
00046 #define MODEL_FACE_WIDTH       40
00047 #define MODEL_FACE_HEIGHT      50
00048 #define MODEL_FACE_DIAGONAL    64
00049 
00050 // NOTE: left is the person's on the image's left
00051 //       your right
00052 
00053 // NOTE: width and height should always be even numbers
00054 //       diagonal smallest even integer bigger than diagonal
00055 #define MODEL_EYE_WIDTH        12
00056 #define MODEL_EYE_HEIGHT       6
00057 #define MODEL_EYE_DIAGONAL     14
00058 #define RE_INPUT               32*4
00059 #define RE_HIDDEN_1            200
00060 #define RE_HIDDEN_2            60
00061 #define RE_TOP                 1
00062 #define RE_LEFT                17
00063 #define RE_BOTTOM              18
00064 #define RE_RIGHT               19
00065 #define LE_TOP                 0
00066 #define LE_LEFT                14
00067 #define LE_BOTTOM              15
00068 #define LE_RIGHT               16
00069 
00070 #define MODEL_NOSE_WIDTH       14
00071 #define MODEL_NOSE_HEIGHT      20
00072 #define MODEL_NOSE_DIAGONAL    26
00073 #define N_INPUT                61*4
00074 #define N_HIDDEN_1             300
00075 #define N_HIDDEN_2             100
00076 #define N_TOP                  6
00077 #define N_LEFT                 7
00078 #define N_BOTTOM               9
00079 #define N_RIGHT                8
00080 
00081 #define MODEL_MOUTH_WIDTH      20
00082 #define MODEL_MOUTH_HEIGHT     10
00083 #define MODEL_MOUTH_DIAGONAL   24
00084 #define M_INPUT                48*4
00085 #define M_HIDDEN_1             250
00086 #define M_HIDDEN_2             60
00087 #define M_TOP                  10
00088 #define M_LEFT                 12
00089 #define M_BOTTOM               11
00090 #define M_RIGHT                13
00091 
00092 
00093 #define GIST_IMAGE_FOLDER      "pics/face/"
00094 #define GIST_TRAIN_FILE        "gistTrain.txt"
00095 #define GIST_TEST_FILE         "gistTest.txt"
00096 #define WEIGHT_DATA_FOLDER     "../weightData/"
00097 #define IMAGE_FOLDER           "../images/awata0830_M_3/"
00098 #define DATA_FOLDER            "../modelgraphs/awata0830_M_3/"
00099 #define FILE_TAGNAME           "awata0830_M_3_"
00100 #define IMAGE_FILE_EXT         ".png"
00101 #define DATA_FILE_EXT          ".mdlgraph"
00102 
00103 #define NUM_DIR                4  // the number of used orientations
00104 #define NUM_G_LEV              5  // number of gabor levels
00105 #define NUM_G_DIR              8  // number of gabor orientations
00106 #define NUM_H_LEV              5  // number of output levels
00107 #define PL_HIDDEN_1            60
00108 #define PL_HIDDEN_2            30
00109 #define PL2_INPUT              40
00110 #define PL2_HIDDEN_1           60
00111 #define PL2_HIDDEN_2           30
00112 
00113 #endif // !MODEL_FACE_H_DEFINED
00114 
00115 // ######################################################################
00116 /* So things look consistent in everyone's emacs... */
00117 /* Local Variables: */
00118 /* indent-tabs-mode: nil */
00119 /* End: */
Generated on Sun May 8 08:04:47 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3