Multi Direct Feed Channel. More...
#include <Channels/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. | |
DirectFeedChannel & | directFeed (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 |
Multi Direct Feed Channel.
Definition at line 175 of file DirectFeedChannel.H.
MultiDirectFeedChannel::MultiDirectFeedChannel | ( | OptionManager & | mgr, | |
uint | num = 1 | |||
) |
Constructor.
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.
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(), ComplexChannel::itsNormType, ComplexChannel::itsOutputRangeMin, maxNormalize(), ComplexChannel::numChans(), 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, directFeed(), 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().
Send a vector of already computed pyramids as inputs to the channels.
Definition at line 328 of file DirectFeedChannel.C.
References ASSERT, 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(), makeSharedComp(), ComplexChannel::numChans(), and ModelComponent::removeSubComponent().
Referenced by MultiDirectFeedChannel().