A GistClassify task-relevance map. More...
#include <Neuro/TaskRelevanceMap.H>
Public Member Functions | |
TaskRelevanceMapGistClassify (OptionManager &mgr, const std::string &descrName="Task-Relevance Map GistClassify", const std::string &tagName="TaskRelevanceMapGistClassify") | |
Uninitialized constructor. | |
virtual | ~TaskRelevanceMapGistClassify () |
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 | gistmatch (Image< float > gist) |
virtual void | getPCAMatrix () |
virtual Image< float > | computeGistDist (Image< float > currGist) |
virtual Image< float > | getTDMap (Image< float > gistDist) |
virtual void | reset1 () |
Get reset. See ModelComponent. | |
Protected Attributes | |
OModelParam< std::string > | itsClusterCenterFileName |
Number of inputs to compute over. | |
OModelParam< std::string > | itsTemplateDir |
OModelParam< int > | itsPCADims |
OModelParam< std::string > | itsPCAMatrixName |
OModelParam< int > | itsCacheSize |
OModelParam< int > | itsUpdatePeriod |
A GistClassify task-relevance map.
This is an alternative to KillStatic method, we use the gist vector to classify the frames into different categories and assign each frame a pre-defined TP map
Definition at line 350 of file TaskRelevanceMap.H.
TaskRelevanceMapGistClassify::TaskRelevanceMapGistClassify | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Task-Relevance Map GistClassify" , |
|||
const std::string & | tagName = "TaskRelevanceMapGistClassify" | |||
) |
Uninitialized constructor.
Definition at line 556 of file TaskRelevanceMap.C.
References OModelParam< T >::getVal(), and ImageCache< T >::setMaxSize().
TaskRelevanceMapGistClassify::~TaskRelevanceMapGistClassify | ( | ) | [virtual] |
Destructor.
Definition at line 573 of file TaskRelevanceMap.C.
Image< float > TaskRelevanceMapGistClassify::computeGistDist | ( | Image< float > | currGist | ) | [protected, virtual] |
only use the whole image's gist feature to do the classification
Definition at line 664 of file TaskRelevanceMap.C.
References ASSERT, Image< T >::beginw(), exp(), Image< T >::getDims(), Image< T >::getHeight(), Image< T >::getVal(), OModelParam< T >::getVal(), itsClusterCenterFileName, matrixInv(), matrixMult(), NO_INIT, Image< T >::setVal(), sum(), Dims::sz(), and transpose().
void TaskRelevanceMapGistClassify::inputFrame | ( | const InputFrame & | f | ) | [protected, virtual] |
Called when a new input frame is available from the Retina.
Implements TaskRelevanceMapAdapter.
Definition at line 583 of file TaskRelevanceMap.C.
void TaskRelevanceMapGistClassify::integrate | ( | SimEventQueue & | q | ) | [protected, virtual] |
Integrate for one time step.
to make the gist feature value in a reasonable range to get the
Implements TaskRelevanceMapAdapter.
Definition at line 591 of file TaskRelevanceMap.C.
References SimEventQueue::check(), Image< T >::getDims(), Image< T >::getHeight(), getMinMax(), OModelParam< T >::getVal(), Image< T >::getWidth(), TaskRelevanceMapAdapter::itsMap, ImageCacheAvg< T >::mean(), ImageCache< T >::push_back(), rescale(), and reshape().
void TaskRelevanceMapGistClassify::reset1 | ( | ) | [protected, virtual] |
Get reset. See ModelComponent.
Reimplemented from TaskRelevanceMapAdapter.
Definition at line 577 of file TaskRelevanceMap.C.
void TaskRelevanceMapGistClassify::saccadicSuppression | ( | const bool | on | ) | [protected, virtual] |
Some TRM implementations will reset their memory upon saccade.
Implements TaskRelevanceMapAdapter.
Definition at line 626 of file TaskRelevanceMap.C.
Number of inputs to compute over.
Definition at line 364 of file TaskRelevanceMap.H.
Referenced by computeGistDist().