SaliencyMapAdapter Class Reference

A partial implementation of SaliencyMap for further subclasses. More...

#include <Neuro/SaliencyMap.H>

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

List of all members.

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 &ampl, 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< SpatialMetricsitsMetrics
 metrics that depend on the input size:
OModelParam< IORtypeitsIORtype
 type of IOR to use. See IORtypes.H
OModelParam< LevelSpecitsLevelSpec
 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.

Detailed Description

A partial implementation of SaliencyMap for further subclasses.

Definition at line 109 of file SaliencyMap.H.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]
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.


Member Data Documentation

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.

type of IOR to use. See IORtypes.H

Definition at line 137 of file SaliencyMap.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 141 of file SaliencyMap.H.

Referenced by SaliencyMapTrivial::blinkSuppression(), SaliencyMapFast::blinkSuppression(), SaliencyMapFast::depress(), SaliencyMapTrivial::depress(), SaliencyMapFast::input(), SaliencyMapTrivial::input(), SaliencyMapFast::saccadicSuppression(), and SaliencyMapTrivial::saccadicSuppression().

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.

metrics that depend on the input size:

Definition at line 134 of file SaliencyMap.H.

Referenced by SaliencyMapAdapter().

Save our cumulative internals when saveResults() is called?

Definition at line 147 of file SaliencyMap.H.

Save our internals?

Definition at line 144 of file SaliencyMap.H.

use blink suppression?

Definition at line 153 of file SaliencyMap.H.

use saccadic suppression?

Definition at line 150 of file SaliencyMap.H.


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