WinnerTakeAllAdapter Class Reference

A partial winner-take-all implementation with a few common member variables. More...

#include <Neuro/WinnerTakeAll.H>

Inheritance diagram for WinnerTakeAllAdapter:
Inheritance graph
[legend]
Collaboration diagram for WinnerTakeAllAdapter:
Collaboration graph
[legend]

List of all members.

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::stringitsLogFile
 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< LevelSpecitsLevelSpec
 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< SimTimeitsBoringDelay
 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

Detailed Description

A partial winner-take-all implementation with a few common member variables.

Definition at line 121 of file WinnerTakeAll.H.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Update with new eye position.

Definition at line 225 of file WinnerTakeAll.C.

References itsEyePos.

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.


Member Data Documentation

Inter-covert-shift delay that makes a shift of attention boring.

Definition at line 194 of file WinnerTakeAll.H.

Minimum saliency map depolarization (in mV) to make a covert attention shift not boring

Definition at line 198 of file WinnerTakeAll.H.

last eye position

Definition at line 207 of file WinnerTakeAll.H.

Referenced by eyeMovement(), WinnerTakeAllGreedy::integrate(), and reset1().

its most recent winner

Definition at line 210 of file WinnerTakeAll.H.

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().

Text log file name.

Definition at line 169 of file WinnerTakeAll.H.

attention shift number (to decide whether we have done too many)

Definition at line 201 of file WinnerTakeAll.H.

Referenced by reset1().

Save our internals when saveResults() is called?

Definition at line 172 of file WinnerTakeAll.H.

Exit after a given number of attention shifts (if not zero).

Definition at line 188 of file WinnerTakeAll.H.

Exit after a given number of attention shifts per frame (if not zero).

Definition at line 191 of file WinnerTakeAll.H.

add jitter to winning location?

Definition at line 185 of file WinnerTakeAll.H.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:44:03 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3