The trivial saliency map: a 2D array of floats. More...
#include <Neuro/SaliencyMap.H>
Public Member Functions | |
SaliencyMapTrivial (OptionManager &mgr, const std::string &descrName="Saliency Map Trivial", const std::string &tagName="SaliencyMapTrivial") | |
Ininitialized constructor. | |
virtual | ~SaliencyMapTrivial () |
Destructor. | |
Protected Member Functions | |
virtual void | input (SimEventQueue &q, const Image< float > &in) |
Set new input currents for all neurons. | |
virtual void | depress (SimEventQueue &q, const Point2D< int > &winner, const double &pampl, const double &mampl, const double &psdev, const double &msdev) |
Difference-of-Gaussians inhibition of return. | |
virtual void | depress (SimEventQueue &q, const Point2D< int > &winner, const double &l, const Image< byte > &objectMask) |
Object-based inhibition of return. | |
virtual void | saccadicSuppression (SimEventQueue &q, const bool on) |
Turn saccadic suppression on/off. | |
virtual void | blinkSuppression (SimEventQueue &q, const bool on) |
Turn blink suppression on/off. | |
virtual Image< float > | getV () const |
Return all our membrane potential voltages as an Image<float> | |
virtual float | getV (const Point2D< int > &p) const |
Access function using Point2D<int> | |
virtual void | reset1 () |
Reset to initial state just after construction. | |
Protected Attributes | |
OModelParam< float > | itsItoVcoeff |
Coeff to go from current inputs to voltage outputs. |
The trivial saliency map: a 2D array of floats.
This is a 2D salience map. It is an Image<float> and inherits all the standard methods of class Image. To avoid confusion, we here add explicit input() and getV() methods.
Definition at line 260 of file SaliencyMap.H.
SaliencyMapTrivial::SaliencyMapTrivial | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Saliency Map Trivial" , |
|||
const std::string & | tagName = "SaliencyMapTrivial" | |||
) |
Ininitialized constructor.
The SM will be resized and initialized the first time input() is called
Definition at line 439 of file SaliencyMap.C.
SaliencyMapTrivial::~SaliencyMapTrivial | ( | ) | [virtual] |
Destructor.
Definition at line 450 of file SaliencyMap.C.
void SaliencyMapTrivial::blinkSuppression | ( | SimEventQueue & | q, | |
const bool | on | |||
) | [protected, virtual] |
Turn blink suppression on/off.
Implements SaliencyMapAdapter.
Definition at line 531 of file SaliencyMap.C.
References OModelParam< T >::getVal(), Image< T >::initialized(), SaliencyMapAdapter::itsLevelSpec, rutz::make_shared(), LevelSpec::mapLevel(), and SimEventQueue::post().
void SaliencyMapTrivial::depress | ( | SimEventQueue & | q, | |
const Point2D< int > & | winner, | |||
const double & | ampl, | |||
const Image< byte > & | objectMask | |||
) | [protected, virtual] |
Object-based inhibition of return.
Implements SaliencyMapAdapter.
Definition at line 502 of file SaliencyMap.C.
References OModelParam< T >::getVal(), inplaceRectify(), SaliencyMapAdapter::itsLevelSpec, rutz::make_shared(), LevelSpec::mapLevel(), and SimEventQueue::post().
void SaliencyMapTrivial::depress | ( | SimEventQueue & | q, | |
const Point2D< int > & | winner, | |||
const double & | pampl, | |||
const double & | mampl, | |||
const double & | psdev, | |||
const double & | msdev | |||
) | [protected, virtual] |
Difference-of-Gaussians inhibition of return.
Implements SaliencyMapAdapter.
Definition at line 474 of file SaliencyMap.C.
References Image< T >::beginw(), Image< T >::getHeight(), OModelParam< T >::getVal(), Image< T >::getWidth(), Point2D< T >::i, Image< T >::initialized(), SaliencyMapAdapter::itsLevelSpec, rutz::make_shared(), LevelSpec::mapLevel(), and SimEventQueue::post().
float SaliencyMapTrivial::getV | ( | const Point2D< int > & | p | ) | const [protected, virtual] |
Access function using Point2D<int>
Implements SaliencyMapAdapter.
Definition at line 553 of file SaliencyMap.C.
References Image< T >::getVal().
Image< float > SaliencyMapTrivial::getV | ( | ) | const [protected, virtual] |
Return all our membrane potential voltages as an Image<float>
Implements SaliencyMapAdapter.
Definition at line 546 of file SaliencyMap.C.
void SaliencyMapTrivial::input | ( | SimEventQueue & | q, | |
const Image< float > & | in | |||
) | [protected, virtual] |
Set new input currents for all neurons.
Implements SaliencyMapAdapter.
Definition at line 463 of file SaliencyMap.C.
References OModelParam< T >::getVal(), Image< T >::initialized(), itsItoVcoeff, SaliencyMapAdapter::itsLevelSpec, rutz::make_shared(), LevelSpec::mapLevel(), and SimEventQueue::post().
void SaliencyMapTrivial::reset1 | ( | ) | [protected, virtual] |
Reset to initial state just after construction.
Reimplemented from ModelComponent.
Definition at line 456 of file SaliencyMap.C.
References Image< T >::freeMem().
void SaliencyMapTrivial::saccadicSuppression | ( | SimEventQueue & | q, | |
const bool | on | |||
) | [protected, virtual] |
Turn saccadic suppression on/off.
Implements SaliencyMapAdapter.
Definition at line 516 of file SaliencyMap.C.
References OModelParam< T >::getVal(), Image< T >::initialized(), SaliencyMapAdapter::itsLevelSpec, rutz::make_shared(), LevelSpec::mapLevel(), and SimEventQueue::post().
OModelParam<float> SaliencyMapTrivial::itsItoVcoeff [protected] |
Coeff to go from current inputs to voltage outputs.
Definition at line 275 of file SaliencyMap.H.
Referenced by input().