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

MultiDirectFeedChannel Class Reference

#include <Channels/DirectFeedChannel.H>

Inheritance diagram for MultiDirectFeedChannel:

Inheritance graph
[legend]
Collaboration diagram for MultiDirectFeedChannel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Multi Direct Feed Channel.

Definition at line 175 of file DirectFeedChannel.H.

Public Member Functions

 MultiDirectFeedChannel (OptionManager &mgr, uint num=1)
 Constructor.
virtual ~MultiDirectFeedChannel ()
 Virtual destructor.
virtual void setNumChans (uint num)
 reset the number of sub-channels
void inputPyramid (uint ChanNum, const ImageSet< float > &pyramid, const SimTime &t)
 Send an already computed pyramid as input to the sub-channel num.
void inputPyramidVector (const PyrVec &pvec, const SimTime &t)
 Send a vector of already computed pyramids as inputs to the channels.
DirectFeedChanneldirectFeed (uint num)
 returns sub-channel number num

Protected Member Functions

virtual Image< float > combineOutputs ()
 Combines the outputs of subchannels.
virtual void doInput (const InputFrame &inframe)
 must be called with either colimg or bwimg to obtain the dims


Constructor & Destructor Documentation

MultiDirectFeedChannel::MultiDirectFeedChannel OptionManager mgr,
uint  num = 1
 

Constructor.

Parameters:
mgr our ModelManager (see ModelManager.H)
num number of sub-channels

Definition at line 289 of file DirectFeedChannel.C.

References setNumChans().

MultiDirectFeedChannel::~MultiDirectFeedChannel  )  [virtual]
 

Virtual destructor.

Definition at line 296 of file DirectFeedChannel.C.


Member Function Documentation

Image< float > MultiDirectFeedChannel::combineOutputs  )  [protected, virtual]
 

Combines the outputs of subchannels.

Reimplemented from ComplexChannel.

Definition at line 345 of file DirectFeedChannel.C.

References ASSERT, directFeed(), ComplexChannel::getMapDims(), DirectFeedChannel::getOutput(), OModelParam< T >::getVal(), i, ComplexChannel::itsNormType, ComplexChannel::itsOutputRangeMax, ComplexChannel::itsOutputRangeMin, maxNormalize(), ComplexChannel::numChans(), output(), and ZEROS.

DirectFeedChannel & MultiDirectFeedChannel::directFeed uint  num  ) 
 

returns sub-channel number num

Definition at line 337 of file DirectFeedChannel.C.

References ASSERT, ComplexChannel::numChans(), and ComplexChannel::subChan().

Referenced by combineOutputs(), doInput(), and inputPyramid().

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

must be called with either colimg or bwimg to obtain the dims

After each call of input, inputPyramidVector or inputPyramid must be called.

Implements ChannelBase.

Definition at line 363 of file DirectFeedChannel.C.

References ASSERT, InputFrame::colorFloat(), directFeed(), InputFrame::grayFloat(), i, Image< T >::initialized(), ChannelBase::input(), and ComplexChannel::numChans().

void MultiDirectFeedChannel::inputPyramid uint  ChanNum,
const ImageSet< float > &  pyramid,
const SimTime t
 

Send an already computed pyramid as input to the sub-channel num.

Definition at line 319 of file DirectFeedChannel.C.

References ASSERT, directFeed(), DirectFeedChannel::inputPyramid(), and ComplexChannel::numChans().

Referenced by inputPyramidVector().

void MultiDirectFeedChannel::inputPyramidVector const PyrVec pvec,
const SimTime t
 

Send a vector of already computed pyramids as inputs to the channels.

Definition at line 328 of file DirectFeedChannel.C.

References ASSERT, i, inputPyramid(), and ComplexChannel::numChans().

void MultiDirectFeedChannel::setNumChans uint  num  )  [virtual]
 

reset the number of sub-channels

Definition at line 300 of file DirectFeedChannel.C.

References ComplexChannel::addSubChan(), ModelComponent::getManager(), i, LFATAL, makeSharedComp(), ComplexChannel::numChans(), and ModelComponent::removeSubComponent().

Referenced by MultiDirectFeedChannel().


The documentation for this class was generated from the following files:
Generated on Sun Nov 22 13:46:05 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4