Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

app-egomotion.C File Reference


Detailed Description

application to demonstrate egomotion from visual data - input is MPEG or list (in gistlist format) of image files (assume .ppm files) Note: reading the velocity: right hand rule, x-positive to the left, y-positive to the north, z-positive forward

Definition in file app-egomotion.C.

#include "Beobot/Landmark.H"
#include "Channels/ChannelOpts.H"
#include "Component/GlobalOpts.H"
#include "Component/ModelManager.H"
#include "Component/ModelOptionDef.H"
#include "Component/OptionManager.H"
#include "GUI/XWinManaged.H"
#include "Gist/FFN.H"
#include "Gist/trainUtils.H"
#include "Image/ColorOps.H"
#include "Image/CutPaste.H"
#include "Image/DrawOps.H"
#include "Image/MathOps.H"
#include "Image/Pixels.H"
#include "Image/ShapeOps.H"
#include "Image/Transforms.H"
#include "Media/MPEGStream.H"
#include "Media/MediaOpts.H"
#include "Media/MediaSimEvents.H"
#include "Neuro/GistEstimator.H"
#include "Neuro/InferoTemporal.H"
#include "Neuro/NeuroOpts.H"
#include "Neuro/NeuroSimEvents.H"
#include "Neuro/Retina.H"
#include "Neuro/ShapeEstimator.H"
#include "Neuro/ShapeEstimatorModes.H"
#include "Neuro/SpatialMetrics.H"
#include "Neuro/StdBrain.H"
#include "Neuro/gistParams.H"
#include "Neuro/VisualCortex.H"
#include "Raster/Raster.H"
#include "SIFT/CameraIntrinsicParam.H"
#include "SIFT/Histogram.H"
#include "SIFT/Keypoint.H"
#include "SIFT/VisualObject.H"
#include "SIFT/VisualObjectDB.H"
#include "Simulation/SimEventQueueConfigurator.H"
#include "Util/Timer.H"
#include <iostream>
#include <fstream>
#include "SIFT/SIFTegomotion.H"

Include dependency graph for app-egomotion.C:

Go to the source code of this file.

Defines

#define DB_NAME   "out_database"
#define W_ASPECT_RATIO   320
#define H_ASPECT_RATIO   240

Functions

void setupDispWin (int w, int h)
Image< PixRGB< byte > > getSalDispImg (Image< PixRGB< byte > > img, Image< float > roiImg, Image< PixRGB< byte > > objImg, Image< PixRGB< byte > > objImg2)
void processSalCue (Image< PixRGB< byte > > inputImg, nub::soft_ref< StdBrain > brain, Point2D< int > winner, int fNum, std::vector< rutz::shared_ptr< Landmark > > &landmarks, const Image< float > &semask, const std::string &selabel)
void getGistFileList (std::string fName, std::vector< std::string > &tag, std::vector< int > &start, std::vector< int > &num)
Image< PixRGB< byte > > getTrajImg (std::vector< Image< double > > traj, int w, int h)
int main (const int argc, const char **argv)

Variables

FeedForwardNetworkffn_place
double ** gistW = NULL
CloseButtonListener wList
rutz::shared_ptr< XWinManagedsalWin
rutz::shared_ptr< XWinManagedobjWin
rutz::shared_ptr< XWinManagedtrajWin
int wDisp
int hDisp
int sDisp
int scaleDisp
int wDispWin
int hDispWin
int pcaW = 16
int pcaH = 5
int winBarW = 5
int winBarH = 25
int numObj = 0


Function Documentation

int main const int  argc,
const char **  argv
 

Load a database, enrich it with new VisualObject entities extracted from the given images, and save it back.

Definition at line 127 of file app-egomotion.C.

References ModelManager::allowOptions(), brain, convertToString(), crop(), e, fNum, nub::soft_ref< T >::get(), getGistFileList(), Image< T >::getHeight(), getTrajImg(), Image< T >::getWidth(), h, Point2D< T >::i, Image< T >::initialized(), Point2D< T >::j, LINFO, MYLOGVERB, OPT_InputFrameDims, OPT_InputMPEGStreamPreload, OPT_IORtype, OPT_MaxNormType, OPT_RawVisualCortexChans, OPT_ShapeEstimatorMode, OPT_ShapeEstimatorSmoothMethod, OPT_UseRandom, OPTEXP_ALL, OPTEXP_SAVE, Raster::ReadRGB(), REQUEST_OPTIONALIAS_NEURO(), setupDispWin(), sformat(), start, status, Rectangle::tlbrI(), w, and SimTime::ZERO().


Generated on Sun Nov 22 13:43:27 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4