A KillN task-relevance map. More...
#include <Neuro/TaskRelevanceMap.H>
Public Member Functions | |
TaskRelevanceMapKillN (OptionManager &mgr, const std::string &descrName="Task-Relevance Map KillN", const std::string &tagName="TaskRelevanceMapKillN") | |
Uninitialized constructor. | |
virtual | ~TaskRelevanceMapKillN () |
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 | start1 () |
Get started. See ModelComponent. | |
virtual void | reset1 () |
Get reset. See ModelComponent. | |
Protected Attributes | |
OModelParam< int > | itsN |
Number of inputs to compute over. |
A KillN task-relevance map.
This is an alternative to IOR, in which we set the relevance of the last N attended locations to zero.
Definition at line 309 of file TaskRelevanceMap.H.
TaskRelevanceMapKillN::TaskRelevanceMapKillN | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Task-Relevance Map KillN" , |
|||
const std::string & | tagName = "TaskRelevanceMapKillN" | |||
) |
Uninitialized constructor.
Definition at line 482 of file TaskRelevanceMap.C.
TaskRelevanceMapKillN::~TaskRelevanceMapKillN | ( | ) | [virtual] |
Destructor.
Definition at line 489 of file TaskRelevanceMap.C.
void TaskRelevanceMapKillN::inputFrame | ( | const InputFrame & | f | ) | [protected, virtual] |
Called when a new input frame is available from the Retina.
Implements TaskRelevanceMapAdapter.
Definition at line 508 of file TaskRelevanceMap.C.
void TaskRelevanceMapKillN::integrate | ( | SimEventQueue & | q | ) | [protected, virtual] |
Integrate for one time step.
Implements TaskRelevanceMapAdapter.
Definition at line 512 of file TaskRelevanceMap.C.
References chamfer34(), SimEventQueue::check(), downSize(), Image< T >::getHeight(), ImageCacheMinMax< T >::getMin(), getMinMax(), Image< T >::getWidth(), inplaceClamp(), TaskRelevanceMapAdapter::itsMap, and ImageCache< T >::push_back().
void TaskRelevanceMapKillN::reset1 | ( | ) | [protected, virtual] |
Get reset. See ModelComponent.
Reimplemented from TaskRelevanceMapAdapter.
Definition at line 493 of file TaskRelevanceMap.C.
References ImageCache< T >::clear().
void TaskRelevanceMapKillN::saccadicSuppression | ( | const bool | on | ) | [protected, virtual] |
Some TRM implementations will reset their memory upon saccade.
Implements TaskRelevanceMapAdapter.
Definition at line 546 of file TaskRelevanceMap.C.
void TaskRelevanceMapKillN::start1 | ( | ) | [protected, virtual] |
Get started. See ModelComponent.
Reimplemented from SimModule.
Definition at line 500 of file TaskRelevanceMap.C.
References OModelParam< T >::getVal(), itsN, and ImageCache< T >::setMaxSize().
OModelParam<int> TaskRelevanceMapKillN::itsN [protected] |
Number of inputs to compute over.
Definition at line 323 of file TaskRelevanceMap.H.
Referenced by start1().