00001 /** 00002 \file Robots/LoBot/config/LoDefaults.H 00003 00004 \brief Various fallback values for different parts of the 00005 lobot/Robolocust related programs. 00006 */ 00007 00008 // //////////////////////////////////////////////////////////////////// // 00009 // The iLab Neuromorphic Vision C++ Toolkit - Copyright (C) 2000-2005 // 00010 // by the University of Southern California (USC) and the iLab at USC. // 00011 // See http://iLab.usc.edu for information about this project. // 00012 // //////////////////////////////////////////////////////////////////// // 00013 // Major portions of the iLab Neuromorphic Vision Toolkit are protected // 00014 // under the U.S. patent ``Computation of Intrinsic Perceptual Saliency // 00015 // in Visual Environments, and Applications'' by Christof Koch and // 00016 // Laurent Itti, California Institute of Technology, 2001 (patent // 00017 // pending; application number 09/912,225 filed July 23, 2001; see // 00018 // http://pair.uspto.gov/cgi-bin/final/home.pl for current status). // 00019 // //////////////////////////////////////////////////////////////////// // 00020 // This file is part of the iLab Neuromorphic Vision C++ Toolkit. // 00021 // // 00022 // The iLab Neuromorphic Vision C++ Toolkit is free software; you can // 00023 // redistribute it and/or modify it under the terms of the GNU General // 00024 // Public License as published by the Free Software Foundation; either // 00025 // version 2 of the License, or (at your option) any later version. // 00026 // // 00027 // The iLab Neuromorphic Vision C++ Toolkit is distributed in the hope // 00028 // that it will be useful, but WITHOUT ANY WARRANTY; without even the // 00029 // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // 00030 // PURPOSE. See the GNU General Public License for more details. // 00031 // // 00032 // You should have received a copy of the GNU General Public License // 00033 // along with the iLab Neuromorphic Vision C++ Toolkit; if not, write // 00034 // to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, // 00035 // Boston, MA 02111-1307 USA. // 00036 // //////////////////////////////////////////////////////////////////// // 00037 // 00038 // Primary maintainer for this file: mviswana usc edu 00039 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/Robots/LoBot/config/LoDefaults.H $ 00040 // $Id: LoDefaults.H 13811 2010-08-21 02:00:08Z mviswana $ 00041 // 00042 00043 #ifndef LOBOT_DEFAULT_FALLBACKS_DOT_H 00044 #define LOBOT_DEFAULT_FALLBACKS_DOT_H 00045 00046 //------------------------------ HEADERS -------------------------------- 00047 00048 // lobot headers 00049 #include "Robots/LoBot/misc/LoRegistry.H" 00050 00051 // INVT headers 00052 #include "Image/Dims.H" 00053 00054 //----------------------- CONFIG FILE DEFAULTS -------------------------- 00055 00056 // lobot supports a single command-line option, viz., --config-file. All 00057 // other settings must be specified in this file. 00058 // 00059 // If the user does not supply the --config-file option explicitly on the 00060 // command line, lobot will fall back to looking for this all-important 00061 // file in the user's home directory under the following name. 00062 #ifndef LOBOT_DEFAULT_CONFIG_FILE_NAME 00063 #define LOBOT_DEFAULT_CONFIG_FILE_NAME ".lobotrc" 00064 #endif 00065 00066 //---------------------- FRAME GRABBING DEFAULTS ------------------------ 00067 00068 // lobot can grab frames from FireWire cameras at one of two resolutions, 00069 // viz., 160x120 and 320x240 (because lobot was originally written to 00070 // work with Unibrain Fire-i cameras, which grab at 30 fps at these two 00071 // resolutions). 00072 // 00073 // If the user does not explicitly set the video frame grab size in the 00074 // lobot config file, we will fall back to using the following defaults. 00075 #ifndef LOBOT_DEFAULT_GRAB_WIDTH 00076 #define LOBOT_DEFAULT_GRAB_WIDTH 320 00077 #endif 00078 #ifndef LOBOT_DEFAULT_GRAB_HEIGHT 00079 #define LOBOT_DEFAULT_GRAB_HEIGHT 240 00080 #endif 00081 00082 // This is a convenience macro that puts the above two dimensions 00083 // together in a Dims object. 00084 #define LOBOT_DEFAULT_GRAB_SIZE Dims(LOBOT_DEFAULT_GRAB_WIDTH, \ 00085 LOBOT_DEFAULT_GRAB_HEIGHT) 00086 00087 // lobot can grab frames at several different rates (as supported by 00088 // libdc1394). This one is the default frame rate in case it is not 00089 // explicitly specified in the config file. 00090 // 00091 // NOTE: Though several frame rates are supported, not all combinations 00092 // of frame rate and size may work together. 00093 #ifndef LOBOT_DEFAULT_GRAB_RATE 00094 #define LOBOT_DEFAULT_GRAB_RATE 30.0f 00095 #endif 00096 00097 //--------------------------- LOCUST MODELS ----------------------------- 00098 00099 // lobot supports several different LGMD models. The following symbol 00100 // defines the default one to use in case the user doesn't specify this 00101 // in the config file. 00102 #define LOBOT_DEFAULT_LOCUST_MODEL LOLM_GABBIANI 00103 00104 // Each virtual locust monitors some portion of the entire input image 00105 // combined from all the video sources. How much of the image a locust 00106 // should monitor is specified via its FOV setting. This is the width (in 00107 // pixels) of the portion of the input image each locust should monitor. 00108 // The vertical extents of each locust's portion always spans the entire 00109 // height of the input image. 00110 // 00111 // The following symbol specifies the default width of a locust's FOV in 00112 // case users don't set it in the config file. Each LGMD model can use a 00113 // different value for the locust FOV. Users may achieve this by 00114 // specifying the appropriate setting in each LGMD model's section of the 00115 // config file. 00116 #ifndef LOBOT_DEFAULT_LOCUST_FOV 00117 #define LOBOT_DEFAULT_LOCUST_FOV 30 00118 #endif 00119 00120 //----------------------------------------------------------------------- 00121 00122 #endif 00123 00124 /* So things look consistent in everyone's emacs... */ 00125 /* Local Variables: */ 00126 /* indent-tabs-mode: nil */ 00127 /* End: */