00001 /*!@file ModelNeuron/SimStructureOpts.C */ 00002 00003 // //////////////////////////////////////////////////////////////////// // 00004 // The iLab Neuromorphic Vision C++ Toolkit - Copyright (C) 2000-2005 // 00005 // by the 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: 00034 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/ModelNeuron/SimStructureOpts.C $ 00035 // $Id: SimStructureOpts.C 14663 2011-03-31 17:49:26Z dberg $ 00036 // 00037 00038 #include "Component/ModelOptionDef.H" 00039 #include "Image/Dims.H" 00040 #include "Image/Point2D.H" 00041 #include "Image/Range.H" 00042 #include "Util/SimTime.H" 00043 00044 #include "ModelNeuron/Location.H" 00045 #include "ModelNeuron/SimStructureOpts.H" 00046 00047 // #################### Super Colliculus Map options: 00048 const ModelOptionCateg MOC_SC = { 00049 MOC_SORTPRI_2, "Superior Colliculus related options" }; 00050 00051 extern const ModelOptionDef OPT_SCSimTimeStep = 00052 { MODOPT_ARG(SimTime), "SCSimTimeStep", &MOC_SC, OPTEXP_CORE, 00053 "The time step used for SC simulations", 00054 "asc-timestep",'\0',"<SimTime>", ".001s"}; 00055 00056 extern const ModelOptionDef OPT_SCDims = 00057 { MODOPT_ARG(Dims), "SCDims", &MOC_SC, OPTEXP_CORE, 00058 "Dimensions of the SC model, 0x0 to set to the " 00059 "dimensions of the input.", "asc-dims", '\0', "<w>x<h>", "0x0"}; 00060 00061 extern const ModelOptionDef OPT_SCBUInpGain = 00062 { MODOPT_ARG(float), "SCBUInpGain", &MOC_SC, OPTEXP_CORE, 00063 "Bu input gain", "asc-bugain", '\0', "", "1.0" }; 00064 00065 extern const ModelOptionDef OPT_SCTDInpGain = 00066 { MODOPT_ARG(float), "SCTDInpGain", &MOC_SC, OPTEXP_CORE, 00067 "Td input gain", "asc-tdgain", '\0', "", "1.0" }; 00068 00069 extern const ModelOptionDef OPT_SCInpGain = 00070 { MODOPT_ARG(float), "SCInpGain", &MOC_SC, OPTEXP_CORE, 00071 "input gain", "asc-gain", '\0', "", "1.0" }; 00072 00073 extern const ModelOptionDef OPT_SCSaveResults = 00074 { MODOPT_FLAG, "SCSaveResults", &MOC_SC, OPTEXP_CORE, 00075 "save our module results","asc-save-results",'\0', "<bool>", "false" }; 00076 00077 extern const ModelOptionDef OPT_SCProbe = 00078 { MODOPT_ARG(Location), "SCProbe", &MOC_SC, OPTEXP_CORE, 00079 "N-D location of probe. -1 can be used along one dimension to display " 00080 "multiple modules", 00081 "asc-probe", '\0', "<d1>,<d2>,<d3>,...", "-1,-1,-1" }; 00082 00083 extern const ModelOptionDef OPT_SCPlotLength = 00084 { MODOPT_ARG(uint), "SCPlotLength", &MOC_SC, OPTEXP_CORE, 00085 "length in ms to display plot. Default, 0, grows foverever. ", 00086 "asc-plot-length", '\0', "<uint>", "0" }; 00087 00088 extern const ModelOptionDef OPT_SC2DPlotDepth = 00089 { MODOPT_ARG(uint), "SC2DPlotDepth", &MOC_SC, OPTEXP_CORE, 00090 "depth to recurse into strctures", 00091 "asc-2dplot-depth", '\0', "<uint>", "0" }; 00092 00093 extern const ModelOptionDef OPT_SCProbeDepth = 00094 { MODOPT_ARG(uint), "SCProbeDepth", &MOC_SC, OPTEXP_CORE, 00095 "depth to recurse into modules at probe location", 00096 "asc-probe-depth", '\0', "<uint>", "1" }; 00097 00098 extern const ModelOptionDef OPT_SCUseDisplayOutput = 00099 { MODOPT_FLAG, "SCUseDisplayOutput", &MOC_SC, OPTEXP_CORE, 00100 "Should we use the firing rate output (false), or the " 00101 "display output (true) which is usually one of the underlying " 00102 "variables in the difference equations. ", 00103 "use-asc-displayoutput", '\0', "<bool>", "false" }; 00104 00105 extern const ModelOptionDef OPT_SCDisplayRange = 00106 { MODOPT_ARG(Range<double>), "SCDisplayRange", &MOC_SC, OPTEXP_CORE, 00107 "sets the display range. Use both less than 0 to normalize at every time step, both" 00108 "zero to set to min/max over time, and any other values to fix the range", "asc-displayrange", 00109 '\0', "<min>-<max>", "0.0-0.0" }; 00110 00111 extern const ModelOptionDef OPT_SCDisplayDecoder = 00112 { MODOPT_ARG_STRING, "SCDisplayDecoder", &MOC_SC, OPTEXP_CORE, 00113 "The display decoder to use in plotting if desired, None otherwise", 00114 "asc-decoder-type", '\0', "<None, AlphaDecoder, RectDecoder, ExpDecoder, HistDecoder>", "None" }; 00115 00116 extern const ModelOptionDef OPT_SC2DPlotSize = 00117 { MODOPT_ARG(Dims), "SC2DPlotSize", &MOC_SC, OPTEXP_CORE, 00118 "Dimensions of the SC model save/plot figures", 00119 "asc-2dplot-dims", '\0', "<w>x<h>", "320x240"}; 00120 00121 // Used by SupColliculus 00122 const ModelOptionDef OPT_SCSCType = 00123 { MODOPT_ARG_STRING, "SCSCType", &MOC_SC, OPTEXP_CORE, 00124 "Type of superior colliculus model to use.", 00125 "asc-sc-type", '\0', "<SC, LowpassSC, NeuralFieldSC, SCTracker>", "LowpassSC" }; 00126 00127 // Used by NeualField 00128 const ModelOptionDef OPT_SCNFType = 00129 { MODOPT_ARG_STRING, "SCNFType", &MOC_SC, OPTEXP_CORE, 00130 "Type of neural field to use.", 00131 "asc-nf-type", '\0', "<NFNbumpCS, NF1bumpCS, NFNbumpDoG, NF0bumpDoG, WeakWTA, WeakBlob, SCs, SCi>", 00132 "NF1bumpCS" }; 00133 00134 // ###################################################################### 00135 /* So things look consistent in everyone's emacs... */ 00136 /* Local Variables: */ 00137 /* indent-tabs-mode: nil */ 00138 /* End: */