A killStatic task-relevance map. More...
#include <Neuro/TaskRelevanceMap.H>
Public Member Functions | |
TaskRelevanceMapKillStatic (OptionManager &mgr, const std::string &descrName="Task-Relevance Map KillStatic", const std::string &tagName="TaskRelevanceMapKillStatic") | |
Uninitialized constructor. | |
virtual | ~TaskRelevanceMapKillStatic () |
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 | save1 (const ModelComponentSaveInfo &sinfo) |
Save our internals. | |
virtual void | reset1 () |
Get reset. See ModelComponent. | |
Protected Attributes | |
OModelParam< float > | itsKillStaticThresh |
OModelParam< float > | itsKillStaticCoeff |
A killStatic task-relevance map.
This is a very simple TRM where image locations that do not change much over time see theri relevance progressively decrease.
Definition at line 256 of file TaskRelevanceMap.H.
TaskRelevanceMapKillStatic::TaskRelevanceMapKillStatic | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Task-Relevance Map KillStatic" , |
|||
const std::string & | tagName = "TaskRelevanceMapKillStatic" | |||
) |
Uninitialized constructor.
Definition at line 371 of file TaskRelevanceMap.C.
TaskRelevanceMapKillStatic::~TaskRelevanceMapKillStatic | ( | ) | [virtual] |
Destructor.
Definition at line 381 of file TaskRelevanceMap.C.
void TaskRelevanceMapKillStatic::inputFrame | ( | const InputFrame & | f | ) | [protected, virtual] |
Called when a new input frame is available from the Retina.
Implements TaskRelevanceMapAdapter.
Definition at line 392 of file TaskRelevanceMap.C.
References absDiff(), downSize(), Image< T >::getHeight(), getMinMax(), OModelParam< T >::getVal(), Image< T >::getWidth(), Image< T >::initialized(), inplaceClamp(), itsKillStaticCoeff, itsKillStaticThresh, and TaskRelevanceMapAdapter::itsMap.
void TaskRelevanceMapKillStatic::integrate | ( | SimEventQueue & | q | ) | [protected, virtual] |
Integrate for one time step.
Implements TaskRelevanceMapAdapter.
Definition at line 453 of file TaskRelevanceMap.C.
void TaskRelevanceMapKillStatic::reset1 | ( | ) | [protected, virtual] |
Get reset. See ModelComponent.
Reimplemented from TaskRelevanceMapAdapter.
Definition at line 385 of file TaskRelevanceMap.C.
References Image< T >::freeMem().
void TaskRelevanceMapKillStatic::saccadicSuppression | ( | const bool | on | ) | [protected, virtual] |
Some TRM implementations will reset their memory upon saccade.
Implements TaskRelevanceMapAdapter.
Definition at line 446 of file TaskRelevanceMap.C.
References Image< T >::freeMem().
void TaskRelevanceMapKillStatic::save1 | ( | const ModelComponentSaveInfo & | sinfo | ) | [protected, virtual] |
Save our internals.
Call the TaskRelevanceMapAdapter version, plus save our static buf.
Reimplemented from TaskRelevanceMapAdapter.
Definition at line 457 of file TaskRelevanceMap.C.
References FLOAT_NORM_0_255, OModelParam< T >::getVal(), TaskRelevanceMapAdapter::itsSaveResults, and SRC_POS.
OModelParam<float> TaskRelevanceMapKillStatic::itsKillStaticCoeff [protected] |
Max killing achievable for a purely static location (should be in 0.0 .. 1.0 range)
Definition at line 276 of file TaskRelevanceMap.H.
Referenced by inputFrame().
OModelParam<float> TaskRelevanceMapKillStatic::itsKillStaticThresh [protected] |
Anything in the difference between current and cumulated previous frames (range 0..255) less than this will be considered static
Definition at line 272 of file TaskRelevanceMap.H.
Referenced by inputFrame().