OptimalGainsFinder Class Reference

Compute the optimal gains that maximize SNR. More...

#include <Channels/OptimalGains.H>

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

List of all members.

Public Member Functions

 OptimalGainsFinder (const Image< byte > &targetMask, const Image< byte > &distractorMask, rutz::shared_ptr< ParamMap > pmap, const bool doMax=true)
 Construct with settings for the algorithm.
virtual ~OptimalGainsFinder ()
 Virtual destructor.
virtual void visitChannelBase (ChannelBase &chan)
 Visit the given ChannelBase node.
virtual void visitSingleChannel (SingleChannel &chan)
 Visit the given SingleChannel node.
virtual void visitComplexChannel (ComplexChannel &chan)
 Visit the given ComplexChannel node.
virtual rutz::shared_ptr
< ParamMap
pmap () const
 Get our pmap, it will contain saliencsT and salienceD values after visit.

Detailed Description

Compute the optimal gains that maximize SNR.

This ChannelVisitor computes the salience of the target and distractors using the masks as cues for their locations. Based on the salience, it finds SNR and the gains; however, SNR and gains are only used internally (they are needed to compute the salience at the next level up the channel hierarchy) but are not saved here. Rather, the salienceT / salienceD info is saved. One can then use app-combineOptimalGains to compute the gains, and a PrefrontalCortexGS to use them.

Definition at line 56 of file OptimalGains.H.


Constructor & Destructor Documentation

OptimalGainsFinder::OptimalGainsFinder ( const Image< byte > &  targetMask,
const Image< byte > &  distractorMask,
rutz::shared_ptr< ParamMap pmap,
const bool  doMax = true 
)

Construct with settings for the algorithm.

Definition at line 54 of file OptimalGains.C.

OptimalGainsFinder::~OptimalGainsFinder (  )  [virtual]

Virtual destructor.

Definition at line 66 of file OptimalGains.C.


Member Function Documentation

rutz::shared_ptr< ParamMap > OptimalGainsFinder::pmap (  )  const [virtual]

Get our pmap, it will contain saliencsT and salienceD values after visit.

Definition at line 249 of file OptimalGains.C.

void OptimalGainsFinder::visitChannelBase ( ChannelBase chan  )  [virtual]

Visit the given ChannelBase node.

Implements ChannelVisitor.

Definition at line 70 of file OptimalGains.C.

References ModelComponent::tagName().

void OptimalGainsFinder::visitComplexChannel ( ComplexChannel chan  )  [virtual]
void OptimalGainsFinder::visitSingleChannel ( SingleChannel chan  )  [virtual]

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