app-SIFT-VisualObjectDBQt.C

00001 /*!@file SIFT/app-SIF-VisualObjectDBQt.C Simple Qt-based SIFT object database browser */
00002 
00003 // The iLab Neuromorphic Vision C++ Toolkit - Copyright (C) 2000-2003   //
00004 // by the University of Southern California (USC) and the iLab at USC.  //
00005 // See http://iLab.usc.edu for information about this project.          //
00006 // //////////////////////////////////////////////////////////////////// //
00007 // Major portions of the iLab Neuromorphic Vision Toolkit are protected //
00008 // under the U.S. patent ``Computation of Intrinsic Perceptual Saliency //
00009 // in Visual Environments, and Applications'' by Christof Koch and      //
00010 // Laurent Itti, California Institute of Technology, 2001 (patent       //
00011 // pending; application number 09/912,225 filed July 23, 2001; see      //
00012 // http://pair.uspto.gov/cgi-bin/final/home.pl for current status).     //
00013 // //////////////////////////////////////////////////////////////////// //
00014 // This file is part of the iLab Neuromorphic Vision C++ Toolkit.       //
00015 //                                                                      //
00016 // The iLab Neuromorphic Vision C++ Toolkit is free software; you can   //
00017 // redistribute it and/or modify it under the terms of the GNU General  //
00018 // Public License as published by the Free Software Foundation; either  //
00019 // version 2 of the License, or (at your option) any later version.     //
00020 //                                                                      //
00021 // The iLab Neuromorphic Vision C++ Toolkit is distributed in the hope  //
00022 // that it will be useful, but WITHOUT ANY WARRANTY; without even the   //
00023 // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      //
00024 // PURPOSE.  See the GNU General Public License for more details.       //
00025 //                                                                      //
00026 // You should have received a copy of the GNU General Public License    //
00027 // along with the iLab Neuromorphic Vision C++ Toolkit; if not, write   //
00028 // to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,   //
00029 // Boston, MA 02111-1307 USA.                                           //
00030 // //////////////////////////////////////////////////////////////////// //
00031 // Primary maintainer for this file: Laurent Itti <itti@usc.edu>
00032 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/Apps/BorderWatch/BorderWatch.C $
00033 // $Id: BorderWatch.C 13039 2010-03-23 02:06:32Z itti $
00034 
00035 #include "QtUtil/Util.H" // for argv2qt()
00036 #include "SIFT/VisualObjectDBQt.qt.H"
00037 #include <QtGui/QApplication>
00038 #include "Util/log.H"
00039 
00040 //! SIFT VisualObjectDB GUI
00041 int main(int argc, const char **argv)
00042 {
00043   MYLOGVERB = LOG_DEBUG;
00044 
00045   // create a QApplication:
00046   int qtargc = 1; const char* qtargv[1] = { "app-SIFT-VisualObjectDBQt" };
00047   QApplication a(qtargc, argv2qt(qtargc, qtargv));
00048 
00049   // and a widget:
00050   VisualObjectDBQt b;
00051   b.setWindowTitle("iLab USC -- SIFT VisualObjectDB GUI");
00052   b.show();
00053 
00054   // main loop for QApplication:
00055   const int ret = a.exec();
00056 
00057   // cleanup and exit:
00058   return ret;
00059 }
Generated on Sun May 8 08:06:46 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3