Inferotemporal interface using SIFT with feature learning. More...
#include <Neuro/InferoTemporalSIFT.H>
Public Member Functions | |
InferoTemporalSIFT (OptionManager &mgr, const std::string &descrName="Infero Temporal SIFT", const std::string &tagName="InferoTemporalSIFT") | |
Constructor. | |
virtual | ~InferoTemporalSIFT () |
Destructor. | |
std::string | getObjNameAtLoc (const std::vector< TestImages::ObjData > &objects, const Point2D< int > &loc) |
Protected Member Functions | |
virtual void | attentionShift (SimEventQueue &q, const Point2D< int > &location) |
Object recognition. | |
virtual void | start1 () |
(re-)initialization - load object database | |
virtual void | stop1 () |
destruction - save object database | |
void | getObjDBToMatch (const char *dir) |
void | computeGist (Image< PixRGB< byte > >) |
void | gistSelect (std::map< double, int >::reverse_iterator iteratorPDFGist) |
Protected Attributes | |
OModelParam< std::string > | itsSIFTStoredDatabase |
dir of stored SIFT Database | |
OModelParam< std::string > | itsITCMode |
option for training or testing mode | |
OModelParam< std::string > | itsPathMatch |
Path of the objects to consider for matching. | |
OModelParam< bool > | itsCoarseReco |
Use the gist to do a coares pre-recognition. | |
OModelParam< std::string > | itsTrainSVM |
file where the training exemple for the SVM will be saved | |
OModelParam< std::string > | itsSVMId |
The Id of the object to train the SVM. | |
OModelParam< std::string > | itsSVMClass |
The Class of the object to train the SVM - Used for completing the ID:Class table. | |
OModelParam< std::string > | itsSVMModel |
file where the training exemple for the SVM will be saved The SVM model to use | |
OModelParam< std::string > | itsSVMRange |
file where the training exemple for the SVM will be saved The range to rescale data before SVM | |
OModelParam< std::string > | itsNameObj |
Name on the object that is processed to train SVM ///. | |
OModelParam< std::string > | itsRecoSave |
file where the result of the recognition will be saved | |
OModelParam< std::string > | itsTable |
file where the table of the class and their Id is saved | |
rutz::shared_ptr< VisualObjectDB > | itsObjectDB |
our object database | |
rutz::shared_ptr< VisualObjectDB > | itsnewObjectDB |
to adapt the database to select only object to match within the given path | |
rutz::shared_ptr< std::map < double, int > > | itsPDFGist |
proba density of the recognition using gist | |
nub::ref< RawVisualCortex > | itsVisualCortex |
nub::ref< RawGistEstimatorStd > | itsGistEstim |
Inferotemporal interface using SIFT with feature learning.
Model of the Inferior Temporal Cortex utilizing SIFT object recognition
Definition at line 66 of file InferoTemporalSIFT.H.
InferoTemporalSIFT::InferoTemporalSIFT | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Infero Temporal SIFT" , |
|||
const std::string & | tagName = "InferoTemporalSIFT" | |||
) |
Constructor.
Definition at line 210 of file InferoTemporalSIFT.C.
References ModelComponent::addSubComponent().
InferoTemporalSIFT::~InferoTemporalSIFT | ( | ) | [virtual] |
Destructor.
Definition at line 290 of file InferoTemporalSIFT.C.
void InferoTemporalSIFT::attentionShift | ( | SimEventQueue & | q, | |
const Point2D< int > & | location | |||
) | [protected, virtual] |
Object recognition.
Implements InferoTemporal.
Definition at line 295 of file InferoTemporalSIFT.C.
References Rectangle::bottomLeft(), Rectangle::bottomRight(), Rectangle::center(), Rectangle::centerDims(), SimEventQueue::check(), rutz::shared_ptr< T >::dyn_cast_from(), findBoundingRect(), rutz::shared_ptr< T >::get(), Image< T >::getDims(), GenericFrame::getMetaData(), OModelParam< T >::getVal(), OModelParam< T >::getValString(), GenericFrame::hasMetaData(), Point2D< T >::i, Image< T >::initialized(), itsCoarseReco, itsITCMode, itsNameObj, itsnewObjectDB, itsObjectDB, itsPathMatch, itsPDFGist, itsRecoSave, itsSVMClass, itsSVMId, itsTable, SimEventQueue::post(), rutz::shared_ptr< T >::reset(), SEQ_ANY, Rectangle::tlbrO(), Rectangle::topLeft(), and Rectangle::topRight().
void InferoTemporalSIFT::start1 | ( | ) | [protected, virtual] |
(re-)initialization - load object database
Reimplemented from SimModule.
Definition at line 244 of file InferoTemporalSIFT.C.
References OModelParam< T >::getVal(), itsnewObjectDB, itsObjectDB, itsPathMatch, and itsSIFTStoredDatabase.
void InferoTemporalSIFT::stop1 | ( | ) | [protected, virtual] |
destruction - save object database
Reimplemented from ModelComponent.
Definition at line 282 of file InferoTemporalSIFT.C.
References OModelParam< T >::getVal(), itsObjectDB, and itsSIFTStoredDatabase.
OModelParam<bool> InferoTemporalSIFT::itsCoarseReco [protected] |
Use the gist to do a coares pre-recognition.
Definition at line 92 of file InferoTemporalSIFT.H.
Referenced by attentionShift().
OModelParam<std::string> InferoTemporalSIFT::itsITCMode [protected] |
option for training or testing mode
Definition at line 90 of file InferoTemporalSIFT.H.
Referenced by attentionShift().
OModelParam<std::string> InferoTemporalSIFT::itsNameObj [protected] |
Name on the object that is processed to train SVM ///.
Definition at line 99 of file InferoTemporalSIFT.H.
Referenced by attentionShift().
to adapt the database to select only object to match within the given path
Definition at line 105 of file InferoTemporalSIFT.H.
Referenced by attentionShift(), and start1().
our object database
Definition at line 104 of file InferoTemporalSIFT.H.
Referenced by attentionShift(), start1(), and stop1().
OModelParam<std::string> InferoTemporalSIFT::itsPathMatch [protected] |
Path of the objects to consider for matching.
Definition at line 91 of file InferoTemporalSIFT.H.
Referenced by attentionShift(), and start1().
rutz::shared_ptr<std::map<double,int> > InferoTemporalSIFT::itsPDFGist [protected] |
proba density of the recognition using gist
Definition at line 106 of file InferoTemporalSIFT.H.
Referenced by attentionShift().
OModelParam<std::string> InferoTemporalSIFT::itsRecoSave [protected] |
file where the result of the recognition will be saved
Definition at line 100 of file InferoTemporalSIFT.H.
Referenced by attentionShift().
dir of stored SIFT Database
Definition at line 89 of file InferoTemporalSIFT.H.
OModelParam<std::string> InferoTemporalSIFT::itsSVMClass [protected] |
The Class of the object to train the SVM - Used for completing the ID:Class table.
Definition at line 96 of file InferoTemporalSIFT.H.
Referenced by attentionShift().
OModelParam<std::string> InferoTemporalSIFT::itsSVMId [protected] |
The Id of the object to train the SVM.
Definition at line 95 of file InferoTemporalSIFT.H.
Referenced by attentionShift().
OModelParam<std::string> InferoTemporalSIFT::itsSVMModel [protected] |
file where the training exemple for the SVM will be saved The SVM model to use
Definition at line 97 of file InferoTemporalSIFT.H.
OModelParam<std::string> InferoTemporalSIFT::itsSVMRange [protected] |
file where the training exemple for the SVM will be saved The range to rescale data before SVM
Definition at line 98 of file InferoTemporalSIFT.H.
OModelParam<std::string> InferoTemporalSIFT::itsTable [protected] |
file where the table of the class and their Id is saved
Definition at line 101 of file InferoTemporalSIFT.H.
Referenced by attentionShift().
OModelParam<std::string> InferoTemporalSIFT::itsTrainSVM [protected] |
file where the training exemple for the SVM will be saved
Definition at line 94 of file InferoTemporalSIFT.H.