00001 /*!@file Script/invt.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: Rob Peters <rjpeters at usc dot edu> 00034 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/Script/invt.C $ 00035 // $Id: invt.C 11877 2009-10-22 16:01:03Z icore $ 00036 // 00037 00038 #ifndef SCRIPT_INVT_C_DEFINED 00039 #define SCRIPT_INVT_C_DEFINED 00040 00041 #include "rutz/prof.h" 00042 #include "tcl/scriptapp.h" 00043 00044 // 00045 // Forward declarations of package init procedures 00046 // 00047 00048 #include "Script/ImageScript.H" 00049 #include "Script/ImageTkScript.H" 00050 #include "Script/MediaScript.H" 00051 #include "Script/ModelScript.H" 00052 #include "Script/NeuroScript.H" 00053 #include "tcl/tclpkg-dlist.h" 00054 #include "tcl/tclpkg-gtrace.h" 00055 #include "tcl/tclpkg-log.h" 00056 #include "tcl/tclpkg-misc.h" 00057 #include "tcl/tclpkg-obj.h" 00058 00059 const tcl::package_info INVT_PKGS[] = 00060 { 00061 00062 { "Bimage", Bimage_Init, "4.1", false }, 00063 { "Brain", Brain_Init, "4.1", false }, 00064 { "Cbimage", Cbimage_Init, "4.1", false }, 00065 { "Cfimage", Cfimage_Init, "4.1", false }, 00066 { "Dlist", Dlist_Init, "4.11876", false }, 00067 { "Fimage", Fimage_Init, "4.1", false }, 00068 { "Frameseries", Frameseries_Init, "4.1", false }, 00069 { "Gtrace", Gtrace_Init, "4.11876", false }, 00070 { "Imagetk", Imagetk_Init, "4.1", true }, 00071 { "Inputframeseries", Inputframeseries_Init, "4.1", false }, 00072 { "Log", Log_Init, "4.11876", false }, 00073 { "Misc", Misc_Init, "4.11876", false }, 00074 { "Modelcomponent", Modelcomponent_Init, "4.1", false }, 00075 { "Modelmanager", Modelmanager_Init, "4.1", false }, 00076 { "Obj", Obj_Init, "4.11876", false }, 00077 { "Objectdb", Objectdb_Init, "4.11876", false }, 00078 { "Outputframeseries", Outputframeseries_Init, "4.1", false }, 00079 { "Prof", Prof_Init, "4.11876", false }, 00080 { "Raster", Raster_Init, "4.1", false }, 00081 { "Simeventqueue", Simeventqueue_Init, "4.1", false }, 00082 { "Siminputframeseries", Siminputframeseries_Init, "4.1", false }, 00083 { "Simmodule", Simmodule_Init, "4.1", false }, 00084 { "Simoutputframeseries",Simoutputframeseries_Init,"4.1", false }, 00085 { "Stdbrain", Stdbrain_Init, "4.1", false }, 00086 { "Winnertakeall", Winnertakeall_Init, "4.1", false }, 00087 { "Winnertakeallstd", Winnertakeallstd_Init, "4.1", false }, 00088 00089 // WARNING! Keep this entry last 00090 { 0, 0, 0, 0 } 00091 }; 00092 00093 /////////////////////////////////////////////////////////////////////// 00094 // 00095 // main() 00096 // 00097 /////////////////////////////////////////////////////////////////////// 00098 00099 int main(int argc, char** argv) 00100 { 00101 GVX_SCRIPT_PROG_BEGIN(app, "iNVT", argc, argv); 00102 00103 // since our interpreter will catch exceptions and print their 00104 // what() error messages, we don't need LFATAL() to duplicate its 00105 // messages to stderr: 00106 LOG_FLAGS &= (~LFATAL_XTRA_NOISY); 00107 00108 // don't have LFATAL() print "-- ABORT", since we won't actually be 00109 // aborting, since the interpreter will catch the exception and 00110 // return control to the user: 00111 LOG_FLAGS &= (~LFATAL_PRINTS_ABORT); 00112 00113 rutz::prof::print_at_exit(true); 00114 00115 app.splash(PACKAGE_STRING " (" __DATE__ ")\n" 00116 "\n" 00117 "Copyright (c) 2001-2005 iLab and the Univ. of Southern California\n" 00118 "<http://ilab.usc.edu>\n" 00119 "Copyright (c) 1998-2004 Rob Peters and Caltech\n" 00120 "<http://ilab.usc.edu/rjpeters/groovx/>\n" 00121 PACKAGE_NAME " is free software, " 00122 "covered by the GNU General Public " 00123 "License, and you are welcome to " 00124 "change it and/or distribute copies " 00125 "of it under certain conditions."); 00126 00127 app.packages(INVT_PKGS); 00128 00129 app.run(); 00130 00131 GVX_SCRIPT_PROG_END(app); 00132 } 00133 00134 // ###################################################################### 00135 /* So things look consistent in everyone's emacs... */ 00136 /* Local Variables: */ 00137 /* indent-tabs-mode: nil */ 00138 /* End: */ 00139 00140 #endif // SCRIPT_INVT_C_DEFINED