
The fast saliency map: a 2D array of floats. More...
#include <Neuro/SaliencyMap.H>


Public Member Functions | |
| SaliencyMapFast (OptionManager &mgr, const std::string &descrName="Saliency Map Fast", const std::string &tagName="SaliencyMapFast") | |
| Ininitialized constructor. | |
| virtual | ~SaliencyMapFast () |
| 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 | integrate (SimEventQueue &q) |
| Integrate our neurons for one time step. | |
| 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< SimTime > | itsTimeStep |
| Simulation time step, in seconds. | |
| OModelParam< float > | itsInputCoeff |
| Coeff by which new inputs replace the current SM at each time step (0..1). | |
| OModelParam< float > | itsItoVcoeff |
| Coeff to go from current inputs to voltage outputs. | |
The fast 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 314 of file SaliencyMap.H.
| SaliencyMapFast::SaliencyMapFast | ( | OptionManager & | mgr, | |
| const std::string & | descrName = "Saliency Map Fast", |
|||
| const std::string & | tagName = "SaliencyMapFast" | |||
| ) |
Ininitialized constructor.
Definition at line 566 of file SaliencyMap.C.
| SaliencyMapFast::~SaliencyMapFast | ( | ) | [virtual] |
Destructor.
Definition at line 579 of file SaliencyMap.C.
| void SaliencyMapFast::blinkSuppression | ( | SimEventQueue & | q, | |
| const bool | on | |||
| ) | [protected, virtual] |
Turn blink suppression on/off.
Implements SaliencyMapAdapter.
Definition at line 691 of file SaliencyMap.C.
References OModelParam< T >::getVal(), Image< T >::initialized(), integrate(), SaliencyMapAdapter::itsLevelSpec, rutz::make_shared(), LevelSpec::mapLevel(), and SimEventQueue::post().
| void SaliencyMapFast::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 642 of file SaliencyMap.C.
References OModelParam< T >::getVal(), inplaceRectify(), integrate(), SaliencyMapAdapter::itsLevelSpec, rutz::make_shared(), LevelSpec::mapLevel(), and SimEventQueue::post().
| void SaliencyMapFast::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 610 of file SaliencyMap.C.
References Image< T >::beginw(), Image< T >::getHeight(), OModelParam< T >::getVal(), Image< T >::getWidth(), Point2D< T >::i, Image< T >::initialized(), integrate(), SaliencyMapAdapter::itsLevelSpec, rutz::make_shared(), LevelSpec::mapLevel(), and SimEventQueue::post().
| float SaliencyMapFast::getV | ( | const Point2D< int > & | p | ) | const [protected, virtual] |
Access function using Point2D<int>
Implements SaliencyMapAdapter.
Definition at line 716 of file SaliencyMap.C.
References Image< T >::getVal().
| Image< float > SaliencyMapFast::getV | ( | ) | const [protected, virtual] |
Return all our membrane potential voltages as an Image<float>
Implements SaliencyMapAdapter.
Definition at line 709 of file SaliencyMap.C.
| void SaliencyMapFast::input | ( | SimEventQueue & | q, | |
| const Image< float > & | in | |||
| ) | [protected, virtual] |
Set new input currents for all neurons.
Implements SaliencyMapAdapter.
Definition at line 592 of file SaliencyMap.C.
References OModelParam< T >::getVal(), Image< T >::initialized(), integrate(), itsItoVcoeff, SaliencyMapAdapter::itsLevelSpec, rutz::make_shared(), LevelSpec::mapLevel(), and SimEventQueue::post().
| void SaliencyMapFast::integrate | ( | SimEventQueue & | q | ) | [protected, virtual] |
Integrate our neurons for one time step.
Definition at line 659 of file SaliencyMap.C.
References OModelParam< T >::getVal(), inplaceAddWeighted(), itsInputCoeff, itsTimeStep, SimEventQueue::now(), and SimTime::secs().
Referenced by blinkSuppression(), depress(), input(), and saccadicSuppression().
| void SaliencyMapFast::reset1 | ( | ) | [protected, virtual] |
Reset to initial state just after construction.
Reimplemented from ModelComponent.
Definition at line 585 of file SaliencyMap.C.
References Image< T >::freeMem(), and SimTime::ZERO().
| void SaliencyMapFast::saccadicSuppression | ( | SimEventQueue & | q, | |
| const bool | on | |||
| ) | [protected, virtual] |
Turn saccadic suppression on/off.
Implements SaliencyMapAdapter.
Definition at line 673 of file SaliencyMap.C.
References OModelParam< T >::getVal(), Image< T >::initialized(), integrate(), SaliencyMapAdapter::itsLevelSpec, rutz::make_shared(), LevelSpec::mapLevel(), and SimEventQueue::post().
OModelParam<float> SaliencyMapFast::itsInputCoeff [protected] |
Coeff by which new inputs replace the current SM at each time step (0..1).
Definition at line 330 of file SaliencyMap.H.
Referenced by integrate().
OModelParam<float> SaliencyMapFast::itsItoVcoeff [protected] |
Coeff to go from current inputs to voltage outputs.
Definition at line 333 of file SaliencyMap.H.
Referenced by input().
OModelParam<SimTime> SaliencyMapFast::itsTimeStep [protected] |
Simulation time step, in seconds.
Definition at line 327 of file SaliencyMap.H.
Referenced by integrate().
1.6.3