A Tigs task-relevance map. More...
#include <Neuro/TaskRelevanceMap.H>
Public Member Functions | |
TaskRelevanceMapTigs (OptionManager &mgr, const std::string &descrName="Task-Relevance Map Tigs", const std::string &tagName="TaskRelevanceMapTigs") | |
Uninitialized constructor. | |
virtual | ~TaskRelevanceMapTigs () |
Destructor. | |
Protected Member Functions | |
virtual void | inputFrame (const InputFrame &f) |
Called when a new input frame is available from the Retina. | |
virtual void | saccadicSuppression (const bool on) |
Some TRM implementations will reset their memory upon saccade. | |
virtual void | integrate (SimEventQueue &q) |
Integrate for one time step. | |
virtual void | getPCAMatrix () |
virtual Image< float > | getTDMap (Image< float > gistDist) |
virtual void | getTigsMatrix () |
virtual Image< float > | decode (Image< float > tmp) |
virtual void | save1 (const ModelComponentSaveInfo &sinfo) |
Save our internals. | |
virtual void | reset1 () |
Get reset. See ModelComponent. | |
Protected Attributes | |
OModelParam< std::string > | itsTigsMatrixName |
Number of inputs to compute over. | |
OModelParam< int > | itsPCADims |
OModelParam< std::string > | itsPCAMatrixName |
OModelParam< int > | itsCacheSize |
OModelParam< int > | itsUpdatePeriod |
A Tigs task-relevance map.
This is an alternative to GistClassify method, we use the gist vector to get the TD map from a learned Tigs Matrix (see Rob's CVPR 2007 paper)
Definition at line 417 of file TaskRelevanceMap.H.
TaskRelevanceMapTigs::TaskRelevanceMapTigs | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Task-Relevance Map Tigs" , |
|||
const std::string & | tagName = "TaskRelevanceMapTigs" | |||
) |
Uninitialized constructor.
Definition at line 773 of file TaskRelevanceMap.C.
References OModelParam< T >::getVal(), ImageCache< T >::setMaxSize(), and OModelParam< T >::setVal().
TaskRelevanceMapTigs::~TaskRelevanceMapTigs | ( | ) | [virtual] |
Destructor.
Definition at line 792 of file TaskRelevanceMap.C.
void TaskRelevanceMapTigs::inputFrame | ( | const InputFrame & | f | ) | [protected, virtual] |
Called when a new input frame is available from the Retina.
Implements TaskRelevanceMapAdapter.
Definition at line 802 of file TaskRelevanceMap.C.
void TaskRelevanceMapTigs::integrate | ( | SimEventQueue & | q | ) | [protected, virtual] |
Integrate for one time step.
Implements TaskRelevanceMapAdapter.
Definition at line 846 of file TaskRelevanceMap.C.
References SimEventQueue::check(), Image< T >::getDims(), getMinMax(), OModelParam< T >::getVal(), TaskRelevanceMapAdapter::itsMap, ImageCacheAvg< T >::mean(), ImageCache< T >::push_back(), and rescale().
void TaskRelevanceMapTigs::reset1 | ( | ) | [protected, virtual] |
Get reset. See ModelComponent.
Reimplemented from TaskRelevanceMapAdapter.
Definition at line 796 of file TaskRelevanceMap.C.
void TaskRelevanceMapTigs::saccadicSuppression | ( | const bool | on | ) | [protected, virtual] |
Some TRM implementations will reset their memory upon saccade.
Implements TaskRelevanceMapAdapter.
Definition at line 877 of file TaskRelevanceMap.C.
void TaskRelevanceMapTigs::save1 | ( | const ModelComponentSaveInfo & | sinfo | ) | [protected, virtual] |
Save our internals.
Call the TaskRelevanceMapAdapter version, plus save our static buf.
Reimplemented from TaskRelevanceMapAdapter.
Definition at line 923 of file TaskRelevanceMap.C.
References FLOAT_NORM_0_255, OModelParam< T >::getVal(), TaskRelevanceMapAdapter::itsSaveResults, and SRC_POS.
Number of inputs to compute over.
Definition at line 431 of file TaskRelevanceMap.H.