Optimized version of the standard saliency map. More...
#include <Neuro/SaliencyMapStdOptim.H>
Classes | |
struct | UpdateJob |
Public Member Functions | |
SaliencyMapStdOptim (OptionManager &mgr, const std::string &descrName="Optimized Saliency Map Std", const std::string &tagName="SaliencyMapStdOptim") | |
Ininitialized constructor. | |
virtual | ~SaliencyMapStdOptim () |
Destructor. | |
virtual void | reset () |
Reset to initial state just after construction. | |
Protected Member Functions | |
SIMCALLBACK_DECLARE (SaliencyMapStdOptim, 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> |
Optimized version of the standard saliency map.
This is an optimized version of SaliencyMapStd.
Definition at line 47 of file SaliencyMapStdOptim.H.
SaliencyMapStdOptim::SaliencyMapStdOptim | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Optimized Saliency Map Std" , |
|||
const std::string & | tagName = "SaliencyMapStdOptim" | |||
) |
Ininitialized constructor.
Definition at line 143 of file SaliencyMapStdOptim.C.
SaliencyMapStdOptim::~SaliencyMapStdOptim | ( | ) | [virtual] |
Destructor.
Definition at line 159 of file SaliencyMapStdOptim.C.
void SaliencyMapStdOptim::blinkSuppression | ( | SimEventQueue & | q, | |
const bool | on | |||
) | [protected, virtual] |
Turn blink suppression on/off.
Implements SaliencyMapAdapter.
Definition at line 290 of file SaliencyMapStdOptim.C.
References Image< T >::clear().
void SaliencyMapStdOptim::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 204 of file SaliencyMapStdOptim.C.
References Image< T >::beginw(), Image< T >::getHeight(), Image< T >::getVal(), Image< T >::getWidth(), and Point2D< T >::i.
void SaliencyMapStdOptim::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 184 of file SaliencyMapStdOptim.C.
References Image< T >::beginw(), Image< T >::getHeight(), Image< T >::getWidth(), and Point2D< T >::i.
float SaliencyMapStdOptim::getV | ( | const Point2D< int > & | p | ) | const [protected, virtual] |
Access function using Point2D<int>
Implements SaliencyMapAdapter.
Definition at line 314 of file SaliencyMapStdOptim.C.
References Image< T >::getVal().
Image< float > SaliencyMapStdOptim::getV | ( | ) | const [protected, virtual] |
Return all our membrane potential voltages as an Image<float>
Implements SaliencyMapAdapter.
Definition at line 307 of file SaliencyMapStdOptim.C.
void SaliencyMapStdOptim::input | ( | SimEventQueue & | q, | |
const Image< float > & | in | |||
) | [protected, virtual] |
Set new input currents for all neurons.
Implements SaliencyMapAdapter.
Definition at line 172 of file SaliencyMapStdOptim.C.
References Image< T >::getDims(), Image< T >::initialized(), and Image< T >::resize().
void SaliencyMapStdOptim::reset | ( | ) | [virtual] |
Reset to initial state just after construction.
Definition at line 165 of file SaliencyMapStdOptim.C.
References Image< T >::freeMem().
void SaliencyMapStdOptim::saccadicSuppression | ( | SimEventQueue & | q, | |
const bool | on | |||
) | [protected, virtual] |
Turn saccadic suppression on/off.
Implements SaliencyMapAdapter.
Definition at line 273 of file SaliencyMapStdOptim.C.
References Image< T >::clear().
SaliencyMapStdOptim::SIMCALLBACK_DECLARE | ( | SaliencyMapStdOptim | , | |
SimEventClockTick | ||||
) | [protected] |
Callback for every clock tick, to run our diff equations in integrate().