The standard saliency map: a 2D array of LeakyIntegrator neurons. More...
#include <Neuro/SaliencyMap.H>
Public Member Functions | |
SaliencyMapStd (OptionManager &mgr, const std::string &descrName="Saliency Map Std", const std::string &tagName="SaliencyMapStd") | |
Ininitialized constructor. | |
virtual | ~SaliencyMapStd () |
Destructor. | |
Protected Member Functions | |
SIMCALLBACK_DECLARE (SaliencyMapStd, SimEventClockTick) | |
Callback for every clock tick, to run our diff equations in integrate(). | |
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 > | itsGinhDecay |
decay for IOR inhibition |
The standard saliency map: a 2D array of LeakyIntegrator neurons.
This is a 2D salience map. It is an Image<LeakyIntegrator> and inherits all the standard methods of class Image. To avoid confusion, we here add explicit input() and getV() methods (rather than providing conversion functions between LeakyIntegrator and float, which could make the process more transparent but also possibly more confusing).
Definition at line 206 of file SaliencyMap.H.
SaliencyMapStd::SaliencyMapStd | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Saliency Map Std" , |
|||
const std::string & | tagName = "SaliencyMapStd" | |||
) |
Ininitialized constructor.
Definition at line 277 of file SaliencyMap.C.
SaliencyMapStd::~SaliencyMapStd | ( | ) | [virtual] |
Destructor.
Definition at line 288 of file SaliencyMap.C.
void SaliencyMapStd::blinkSuppression | ( | SimEventQueue & | q, | |
const bool | on | |||
) | [protected, virtual] |
Turn blink suppression on/off.
Implements SaliencyMapAdapter.
Definition at line 385 of file SaliencyMap.C.
References Image< T >::beginw(), and Image< T >::endw().
void SaliencyMapStd::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 333 of file SaliencyMap.C.
References Image< T >::beginw(), Image< T >::getHeight(), Image< T >::getVal(), Image< T >::getWidth(), and Point2D< T >::i.
void SaliencyMapStd::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 313 of file SaliencyMap.C.
References Image< T >::beginw(), Image< T >::getHeight(), Image< T >::getWidth(), and Point2D< T >::i.
float SaliencyMapStd::getV | ( | const Point2D< int > & | p | ) | const [protected, virtual] |
Access function using Point2D<int>
Implements SaliencyMapAdapter.
Definition at line 419 of file SaliencyMap.C.
References LeakyIntegrator::getV(), and Image< T >::getVal().
Image< float > SaliencyMapStd::getV | ( | ) | const [protected, virtual] |
Return all our membrane potential voltages as an Image<float>
Implements SaliencyMapAdapter.
Definition at line 404 of file SaliencyMap.C.
References Image< T >::begin(), Image< T >::end(), Image< T >::getDims(), Image< T >::initialized(), and NO_INIT.
void SaliencyMapStd::input | ( | SimEventQueue & | q, | |
const Image< float > & | in | |||
) | [protected, virtual] |
Set new input currents for all neurons.
Implements SaliencyMapAdapter.
Definition at line 294 of file SaliencyMap.C.
References Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::endw(), Image< T >::getDims(), OModelParam< T >::getVal(), Image< T >::initialized(), itsGinhDecay, Image< T >::resize(), and ModelComponent::stop().
void SaliencyMapStd::reset1 | ( | ) | [protected, virtual] |
Reset to initial state just after construction.
Reimplemented from ModelComponent.
Definition at line 426 of file SaliencyMap.C.
References Image< T >::freeMem().
void SaliencyMapStd::saccadicSuppression | ( | SimEventQueue & | q, | |
const bool | on | |||
) | [protected, virtual] |
Turn saccadic suppression on/off.
Implements SaliencyMapAdapter.
Definition at line 366 of file SaliencyMap.C.
References Image< T >::beginw(), and Image< T >::endw().
SaliencyMapStd::SIMCALLBACK_DECLARE | ( | SaliencyMapStd | , | |
SimEventClockTick | ||||
) | [protected] |
Callback for every clock tick, to run our diff equations in integrate().
OModelParam<float> SaliencyMapStd::itsGinhDecay [protected] |