#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/Histogram.H"
#include "SIFT/Keypoint.H"
#include "SIFT/VisualObject.H"
#include "SIFT/VisualObjectDB.H"
#include "Simulation/SimEventQueueConfigurator.H"
#include "Util/Timer.H"
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 > > | getGistDispImg (Image< PixRGB< byte > > img, Image< float > gistImg, Image< float > gistPcaImg, Image< float > outHistImg) |
Image< PixRGB< byte > > | getSalDispImg (Image< PixRGB< byte > > img, Image< float > roiImg, Image< PixRGB< byte > > objImg, Point2D< int > winner, int fNum) |
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 | setupCases (const char *fname) |
int | main (const int argc, const char **argv) |
Variables | |
FeedForwardNetwork * | ffn_place |
double ** | gistW = NULL |
CloseButtonListener | wList |
XWinManaged * | salWin |
XWinManaged * | gistWin |
rutz::shared_ptr< XWinManaged > | objWin |
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 |
uint | nCat = 0 |
std::vector< std::string > * | clipList |
Build a database of salient VisualObject from a stream input
Definition in file app-build-salObjDB.C.
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 126 of file app-build-salObjDB.C.
References ModelComponent::addSubComponent(), ModelManager::allowOptions(), ModelComponent::exportOptions(), nub::soft_ref< T >::get(), ModelManager::getExtraArg(), Dims::h(), Point2D< T >::i, Image< T >::initialized(), inplacePaste(), MC_RECURSE, MYLOGVERB, OPT_InputFrameDims, OPT_ShapeEstimatorMode, OPTEXP_ALL, OPTEXP_SAVE, ModelManager::parseCommandLine(), REQUEST_OPTIONALIAS_NEURO(), ModelManager::setOptionValString(), sformat(), ModelComponent::start(), ModelComponent::stop(), Rectangle::tlbrI(), Dims::w(), Raster::waitForKey(), SimTime::ZERO(), and ZEROS.