A partial implementation of SaliencyMap for further subclasses. More...
#include <Neuro/SaliencyMap.H>
Public Member Functions | |
SaliencyMapAdapter (OptionManager &mgr, const std::string &descrName, const std::string &tagName) | |
Constructor. | |
virtual | ~SaliencyMapAdapter () |
Destructor. | |
Protected Member Functions | |
SIMCALLBACK_DECLARE (SaliencyMapAdapter, SimEventWTAwinner) | |
Callback for when a new WTA winner is available. | |
SIMCALLBACK_DECLARE (SaliencyMapAdapter, SimEventVisualCortexOutput) | |
Callback for when a new data from VisualCortex is available. | |
SIMCALLBACK_DECLARE (SaliencyMapAdapter, SimEventSaccadeStatusEye) | |
Callback for when a new eye activity is going on. | |
SIMCALLBACK_DECLARE (SaliencyMapAdapter, SimEventSaveOutput) | |
Callback for every time we should save our outputs. | |
virtual void | input (SimEventQueue &q, const Image< float > &in)=0 |
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)=0 |
Difference-of-Gaussians inhibition of return. | |
virtual void | depress (SimEventQueue &q, const Point2D< int > &winner, const double &l, const Image< byte > &objectMask)=0 |
Object-based inhibition of return. | |
virtual void | saccadicSuppression (SimEventQueue &q, const bool on)=0 |
Turn saccadic suppression on/off. | |
virtual void | blinkSuppression (SimEventQueue &q, const bool on)=0 |
Turn blink suppression on/off. | |
virtual Image< float > | getV () const =0 |
Return all our membrane potential voltages as an Image<float> | |
virtual float | getV (const Point2D< int > &p) const =0 |
Access function using Point2D<int> | |
Protected Attributes | |
nub::ref< SpatialMetrics > | itsMetrics |
metrics that depend on the input size: | |
OModelParam< IORtype > | itsIORtype |
type of IOR to use. See IORtypes.H | |
OModelParam< LevelSpec > | itsLevelSpec |
Specification of our image processing center-surround levels. | |
OModelParam< bool > | itsSaveResults |
Save our internals? | |
OModelParam< bool > | itsSaveCumResults |
Save our cumulative internals when saveResults() is called? | |
OModelParam< bool > | itsUseSaccadicSuppression |
use saccadic suppression? | |
OModelParam< bool > | itsUseBlinkSuppression |
use blink suppression? | |
OModelParam< float > | itsMaxWinMv |
Image< float > | itsCumMap |
Cumulative map so far. Cumulates each time saveResults() is called. |
A partial implementation of SaliencyMap for further subclasses.
Definition at line 109 of file SaliencyMap.H.
SaliencyMapAdapter::SaliencyMapAdapter | ( | OptionManager & | mgr, | |
const std::string & | descrName, | |||
const std::string & | tagName | |||
) |
Constructor.
Definition at line 128 of file SaliencyMap.C.
References ModelComponent::addSubComponent(), and itsMetrics.
SaliencyMapAdapter::~SaliencyMapAdapter | ( | ) | [virtual] |
Destructor.
Definition at line 150 of file SaliencyMap.C.
virtual void SaliencyMapAdapter::blinkSuppression | ( | SimEventQueue & | q, | |
const bool | on | |||
) | [protected, pure virtual] |
Turn blink suppression on/off.
Implemented in SaliencyMapStd, SaliencyMapTrivial, SaliencyMapFast, and SaliencyMapStdOptim.
virtual void SaliencyMapAdapter::depress | ( | SimEventQueue & | q, | |
const Point2D< int > & | winner, | |||
const double & | ampl, | |||
const Image< byte > & | objectMask | |||
) | [protected, pure virtual] |
Object-based inhibition of return.
The object mask defines where in the image the inhibition will be applied. The winner coordinates and ampl are used to calibrate the inhibition strength
Implemented in SaliencyMapStd, SaliencyMapTrivial, SaliencyMapFast, and SaliencyMapStdOptim.
virtual void SaliencyMapAdapter::depress | ( | SimEventQueue & | q, | |
const Point2D< int > & | winner, | |||
const double & | pampl, | |||
const double & | mampl, | |||
const double & | psdev, | |||
const double & | msdev | |||
) | [protected, pure virtual] |
Difference-of-Gaussians inhibition of return.
The positive Gaussian is defined by its amplitute pampl and width psdev; the negative Gaussian by mampl and msdev. Both centered at winner.
Implemented in SaliencyMapStd, SaliencyMapTrivial, SaliencyMapFast, and SaliencyMapStdOptim.
virtual float SaliencyMapAdapter::getV | ( | const Point2D< int > & | p | ) | const [protected, pure virtual] |
Access function using Point2D<int>
Implemented in SaliencyMapStd, SaliencyMapTrivial, SaliencyMapFast, and SaliencyMapStdOptim.
virtual Image<float> SaliencyMapAdapter::getV | ( | ) | const [protected, pure virtual] |
Return all our membrane potential voltages as an Image<float>
Implemented in SaliencyMapStd, SaliencyMapTrivial, SaliencyMapFast, and SaliencyMapStdOptim.
virtual void SaliencyMapAdapter::input | ( | SimEventQueue & | q, | |
const Image< float > & | in | |||
) | [protected, pure virtual] |
Set new input currents for all neurons.
This should initialize and resize the saliency map if the saliency map is currently uninitialized (e.g., just after construction or reset()).
Implemented in SaliencyMapStd, SaliencyMapTrivial, SaliencyMapFast, and SaliencyMapStdOptim.
virtual void SaliencyMapAdapter::saccadicSuppression | ( | SimEventQueue & | q, | |
const bool | on | |||
) | [protected, pure virtual] |
Turn saccadic suppression on/off.
Implemented in SaliencyMapStd, SaliencyMapTrivial, SaliencyMapFast, and SaliencyMapStdOptim.
SaliencyMapAdapter::SIMCALLBACK_DECLARE | ( | SaliencyMapAdapter | , | |
SimEventSaveOutput | ||||
) | [protected] |
Callback for every time we should save our outputs.
SaliencyMapAdapter::SIMCALLBACK_DECLARE | ( | SaliencyMapAdapter | , | |
SimEventSaccadeStatusEye | ||||
) | [protected] |
Callback for when a new eye activity is going on.
SaliencyMapAdapter::SIMCALLBACK_DECLARE | ( | SaliencyMapAdapter | , | |
SimEventVisualCortexOutput | ||||
) | [protected] |
Callback for when a new data from VisualCortex is available.
SaliencyMapAdapter::SIMCALLBACK_DECLARE | ( | SaliencyMapAdapter | , | |
SimEventWTAwinner | ||||
) | [protected] |
Callback for when a new WTA winner is available.
Image<float> SaliencyMapAdapter::itsCumMap [protected] |
Cumulative map so far. Cumulates each time saveResults() is called.
This is computed only if itsSaveCumResults() is true
Definition at line 161 of file SaliencyMap.H.
OModelParam<IORtype> SaliencyMapAdapter::itsIORtype [protected] |
type of IOR to use. See IORtypes.H
Definition at line 137 of file SaliencyMap.H.
OModelParam<LevelSpec> SaliencyMapAdapter::itsLevelSpec [protected] |
Specification of our image processing center-surround levels.
The only thing that we care about here is the saliency map level
Definition at line 141 of file SaliencyMap.H.
Referenced by SaliencyMapTrivial::blinkSuppression(), SaliencyMapFast::blinkSuppression(), SaliencyMapFast::depress(), SaliencyMapTrivial::depress(), SaliencyMapFast::input(), SaliencyMapTrivial::input(), SaliencyMapFast::saccadicSuppression(), and SaliencyMapTrivial::saccadicSuppression().
OModelParam<float> SaliencyMapAdapter::itsMaxWinMv [protected] |
If the saliency map voltage at winning location gets higher than this (in mV), trigger some global inhibition
Definition at line 157 of file SaliencyMap.H.
nub::ref<SpatialMetrics> SaliencyMapAdapter::itsMetrics [protected] |
metrics that depend on the input size:
Definition at line 134 of file SaliencyMap.H.
Referenced by SaliencyMapAdapter().
OModelParam<bool> SaliencyMapAdapter::itsSaveCumResults [protected] |
Save our cumulative internals when saveResults() is called?
Definition at line 147 of file SaliencyMap.H.
OModelParam<bool> SaliencyMapAdapter::itsSaveResults [protected] |
Save our internals?
Definition at line 144 of file SaliencyMap.H.
OModelParam<bool> SaliencyMapAdapter::itsUseBlinkSuppression [protected] |
use blink suppression?
Definition at line 153 of file SaliencyMap.H.
OModelParam<bool> SaliencyMapAdapter::itsUseSaccadicSuppression [protected] |
use saccadic suppression?
Definition at line 150 of file SaliencyMap.H.