Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TcorrChannel Class Reference

#include <Channels/TcorrChannel.H>

Inheritance diagram for TcorrChannel:

Inheritance graph
[legend]
Collaboration diagram for TcorrChannel:

Collaboration graph
[legend]
List of all members.

Detailed Description

A temporal correlation channel.

Note that in this channel, high 'salience' means low temporal correlation, i.e., lots of change. CAUTION: this channel will throw a fatal exception if your LevelSpec contains more than one level or if that level is different from the maplevel or if the deltas are non-zero.

Definition at line 51 of file TcorrChannel.H.

Public Member Functions

 TcorrChannel (OptionManager &mgr)
 Construct with standard params.
virtual ~TcorrChannel ()
 Destructor.
virtual bool outputAvailable () const
 overload

Protected Member Functions

virtual void doInput (const InputFrame &inframe)
 special input function
virtual Image< float > getOutput ()
 special output function

Protected Attributes

OModelParam< int > itsFrameLag
 Lag (in frames) to use for correlation.
ImageCache< float > itsCache
 cache of the recent inputs
Image< float > itsMap
 our temporal correlation map


Constructor & Destructor Documentation

TcorrChannel::TcorrChannel OptionManager mgr  ) 
 

Construct with standard params.

Definition at line 50 of file TcorrChannel.C.

TcorrChannel::~TcorrChannel  )  [virtual]
 

Destructor.

Definition at line 58 of file TcorrChannel.C.


Member Function Documentation

void TcorrChannel::doInput const InputFrame inframe  )  [protected, virtual]
 

special input function

Reimplemented from SingleChannel.

Definition at line 66 of file TcorrChannel.C.

References ASSERT, LevelSpec::delMax(), LevelSpec::delMin(), ImageCache< T >::getMaxSize(), OModelParam< T >::getVal(), InputFrame::grayFloat(), Image< T >::initialized(), itsCache, itsFrameLag, SingleChannel::itsLevelSpec, LevelSpec::levMax(), LevelSpec::levMin(), LevelSpec::mapLevel(), ImageCache< T >::push_back(), and ImageCache< T >::setMaxSize().

Image< float > TcorrChannel::getOutput  )  [protected, virtual]
 

special output function

Reimplemented from SingleChannel.

Definition at line 84 of file TcorrChannel.C.

References ImageCache< T >::back(), Image< T >::beginw(), corrpatch(), ImageCache< T >::front(), Image< T >::getHeight(), ImageCache< T >::getMaxSize(), OModelParam< T >::getVal(), Image< T >::getWidth(), h, i, itsCache, SingleChannel::itsLevelSpec, itsMap, LERROR, LevelSpec::mapLevel(), rutz::min(), Image< T >::resize(), ImageCache< T >::size(), and w.

bool TcorrChannel::outputAvailable  )  const [virtual]
 

overload

Reimplemented from SingleChannel.

Definition at line 62 of file TcorrChannel.C.

References ImageCache< T >::getMaxSize(), itsCache, and ImageCache< T >::size().


Member Data Documentation

ImageCache<float> TcorrChannel::itsCache [protected]
 

cache of the recent inputs

Definition at line 72 of file TcorrChannel.H.

Referenced by doInput(), getOutput(), and outputAvailable().

OModelParam<int> TcorrChannel::itsFrameLag [protected]
 

Lag (in frames) to use for correlation.

Definition at line 64 of file TcorrChannel.H.

Referenced by doInput().

Image<float> TcorrChannel::itsMap [protected]
 

our temporal correlation map

Definition at line 73 of file TcorrChannel.H.

Referenced by getOutput().


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 15:51:19 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4