A partial winner-take-all implementation with a few common member variables. More...
#include <Neuro/WinnerTakeAll.H>
Public Member Functions | |
WinnerTakeAllAdapter (OptionManager &mgr, const std::string &descrName, const std::string &tagName) | |
Constructor. | |
virtual | ~WinnerTakeAllAdapter () |
Destructor. | |
virtual void | reset1 () |
Reset our number of shifts. | |
Protected Member Functions | |
SIMCALLBACK_DECLARE (WinnerTakeAllAdapter, SimEventAttentionGuidanceMapOutput) | |
Callback for when a new data from the AGM is available. | |
SIMCALLBACK_DECLARE (WinnerTakeAllAdapter, SimEventSaccadeStatusEye) | |
Callback for when a new eye activity is going on. | |
SIMCALLBACK_DECLARE (WinnerTakeAllAdapter, SimEventInputFrame) | |
Callback for every clock tick, to run our diff equations in integrate(). | |
SIMCALLBACK_DECLARE (WinnerTakeAllAdapter, SimEventSaveOutput) | |
Callback for every time we should save our outputs. | |
virtual void | input (const Image< float > &in)=0 |
Set new input currents for all neurons. | |
virtual void | eyeMovement (const Point2D< int > &curreye) |
Update with new eye position. | |
virtual Image< float > | getV () const =0 |
Return all our membrane potential voltages as an Image<float> | |
virtual void | saccadicSuppression (const bool on)=0 |
Turn saccadic suppression on/off. | |
virtual void | blinkSuppression (const bool on)=0 |
Turn blink suppression on/off. | |
virtual void | integrate (const SimTime &t, Point2D< int > &winner)=0 |
evolve and check if we got a winner | |
Protected Attributes | |
OModelParam< std::string > | itsLogFile |
Text log file name. | |
OModelParam< bool > | itsSaveResults |
Save our internals when saveResults() is called? | |
OModelParam< bool > | itsUseSaccadicSuppression |
use saccadic suppression? | |
OModelParam< bool > | itsUseBlinkSuppression |
use blink suppression? | |
OModelParam< LevelSpec > | itsLevelSpec |
Specification of our image processing center-surround levels. | |
OModelParam< bool > | itsUseRandom |
add jitter to winning location? | |
OModelParam< int > | itsTooManyShifts |
Exit after a given number of attention shifts (if not zero). | |
OModelParam< int > | itsTooManyShiftsPerFrame |
Exit after a given number of attention shifts per frame (if not zero). | |
OModelParam< SimTime > | itsBoringDelay |
Inter-covert-shift delay that makes a shift of attention boring. | |
OModelParam< float > | itsBoringSMmv |
int | itsNumShifts |
attention shift number (to decide whether we have done too many) | |
Image< float > | itsInputCopy |
copy of our last input | |
Point2D< int > | itsEyePos |
last eye position | |
WTAwinner | itsLastWinner |
its most recent winner |
A partial winner-take-all implementation with a few common member variables.
Definition at line 121 of file WinnerTakeAll.H.
WinnerTakeAllAdapter::WinnerTakeAllAdapter | ( | OptionManager & | mgr, | |
const std::string & | descrName, | |||
const std::string & | tagName | |||
) |
Constructor.
Definition at line 104 of file WinnerTakeAll.C.
WinnerTakeAllAdapter::~WinnerTakeAllAdapter | ( | ) | [virtual] |
Destructor.
Definition at line 131 of file WinnerTakeAll.C.
virtual void WinnerTakeAllAdapter::blinkSuppression | ( | const bool | on | ) | [protected, pure virtual] |
Turn blink suppression on/off.
Implemented in WinnerTakeAllStd, WinnerTakeAllFast, WinnerTakeAllTempNote, and WinnerTakeAllStdOptim.
void WinnerTakeAllAdapter::eyeMovement | ( | const Point2D< int > & | curreye | ) | [protected, virtual] |
virtual Image<float> WinnerTakeAllAdapter::getV | ( | ) | const [protected, pure virtual] |
Return all our membrane potential voltages as an Image<float>
Implemented in WinnerTakeAllStd, WinnerTakeAllFast, WinnerTakeAllTempNote, and WinnerTakeAllStdOptim.
virtual void WinnerTakeAllAdapter::input | ( | const Image< float > & | in | ) | [protected, pure virtual] |
Set new input currents for all neurons.
This will initialize and resize the network if the network is currently uninitialized (e.g., just after construction or reset()).
Implemented in WinnerTakeAllStd, WinnerTakeAllFast, WinnerTakeAllTempNote, and WinnerTakeAllStdOptim.
virtual void WinnerTakeAllAdapter::integrate | ( | const SimTime & | t, | |
Point2D< int > & | winner | |||
) | [protected, pure virtual] |
evolve and check if we got a winner
Implemented in WinnerTakeAllStd, WinnerTakeAllFast, WinnerTakeAllGreedy, WinnerTakeAllTempNote, and WinnerTakeAllStdOptim.
void WinnerTakeAllAdapter::reset1 | ( | ) | [virtual] |
Reset our number of shifts.
Reimplemented from ModelComponent.
Reimplemented in WinnerTakeAllStd, WinnerTakeAllTempNote, and WinnerTakeAllStdOptim.
Definition at line 137 of file WinnerTakeAll.C.
References Image< T >::freeMem(), itsEyePos, itsInputCopy, and itsNumShifts.
virtual void WinnerTakeAllAdapter::saccadicSuppression | ( | const bool | on | ) | [protected, pure virtual] |
Turn saccadic suppression on/off.
Implemented in WinnerTakeAllStd, WinnerTakeAllFast, WinnerTakeAllTempNote, and WinnerTakeAllStdOptim.
WinnerTakeAllAdapter::SIMCALLBACK_DECLARE | ( | WinnerTakeAllAdapter | , | |
SimEventSaveOutput | ||||
) | [protected] |
Callback for every time we should save our outputs.
WinnerTakeAllAdapter::SIMCALLBACK_DECLARE | ( | WinnerTakeAllAdapter | , | |
SimEventInputFrame | ||||
) | [protected] |
Callback for every clock tick, to run our diff equations in integrate().
WinnerTakeAllAdapter::SIMCALLBACK_DECLARE | ( | WinnerTakeAllAdapter | , | |
SimEventSaccadeStatusEye | ||||
) | [protected] |
Callback for when a new eye activity is going on.
WinnerTakeAllAdapter::SIMCALLBACK_DECLARE | ( | WinnerTakeAllAdapter | , | |
SimEventAttentionGuidanceMapOutput | ||||
) | [protected] |
Callback for when a new data from the AGM is available.
OModelParam<SimTime> WinnerTakeAllAdapter::itsBoringDelay [protected] |
Inter-covert-shift delay that makes a shift of attention boring.
Definition at line 194 of file WinnerTakeAll.H.
OModelParam<float> WinnerTakeAllAdapter::itsBoringSMmv [protected] |
Minimum saliency map depolarization (in mV) to make a covert attention shift not boring
Definition at line 198 of file WinnerTakeAll.H.
Point2D<int> WinnerTakeAllAdapter::itsEyePos [protected] |
last eye position
Definition at line 207 of file WinnerTakeAll.H.
Referenced by eyeMovement(), WinnerTakeAllGreedy::integrate(), and reset1().
Image<float> WinnerTakeAllAdapter::itsInputCopy [protected] |
copy of our last input
Definition at line 204 of file WinnerTakeAll.H.
Referenced by WinnerTakeAllFast::blinkSuppression(), WinnerTakeAllFast::getV(), WinnerTakeAllGreedy::integrate(), WinnerTakeAllFast::integrate(), WinnerTakeAllTempNote::integrate(), WinnerTakeAllStd::integrate(), reset1(), and WinnerTakeAllFast::saccadicSuppression().
WTAwinner WinnerTakeAllAdapter::itsLastWinner [protected] |
its most recent winner
Definition at line 210 of file WinnerTakeAll.H.
OModelParam<LevelSpec> WinnerTakeAllAdapter::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 182 of file WinnerTakeAll.H.
Referenced by WinnerTakeAllGreedy::integrate().
OModelParam<std::string> WinnerTakeAllAdapter::itsLogFile [protected] |
Text log file name.
Definition at line 169 of file WinnerTakeAll.H.
int WinnerTakeAllAdapter::itsNumShifts [protected] |
attention shift number (to decide whether we have done too many)
Definition at line 201 of file WinnerTakeAll.H.
Referenced by reset1().
OModelParam<bool> WinnerTakeAllAdapter::itsSaveResults [protected] |
Save our internals when saveResults() is called?
Definition at line 172 of file WinnerTakeAll.H.
OModelParam<int> WinnerTakeAllAdapter::itsTooManyShifts [protected] |
Exit after a given number of attention shifts (if not zero).
Definition at line 188 of file WinnerTakeAll.H.
OModelParam<int> WinnerTakeAllAdapter::itsTooManyShiftsPerFrame [protected] |
Exit after a given number of attention shifts per frame (if not zero).
Definition at line 191 of file WinnerTakeAll.H.
OModelParam<bool> WinnerTakeAllAdapter::itsUseBlinkSuppression [protected] |
use blink suppression?
Definition at line 178 of file WinnerTakeAll.H.
Referenced by WinnerTakeAllFast::blinkSuppression(), WinnerTakeAllTempNote::blinkSuppression(), WinnerTakeAllStdOptim::blinkSuppression(), and WinnerTakeAllStd::blinkSuppression().
OModelParam<bool> WinnerTakeAllAdapter::itsUseRandom [protected] |
add jitter to winning location?
Definition at line 185 of file WinnerTakeAll.H.
OModelParam<bool> WinnerTakeAllAdapter::itsUseSaccadicSuppression [protected] |
use saccadic suppression?
Definition at line 175 of file WinnerTakeAll.H.
Referenced by WinnerTakeAllStdOptim::saccadicSuppression(), WinnerTakeAllStd::saccadicSuppression(), WinnerTakeAllTempNote::saccadicSuppression(), and WinnerTakeAllFast::saccadicSuppression().