A composite channel containing a set of direction channels. More...
#include <Channels/MotionChannel.H>
Public Member Functions | |
MotionChannel (OptionManager &mgr) | |
Construct. | |
virtual | ~MotionChannel () |
destructor | |
virtual DirectionChannel & | dirChan (const uint idx) const |
returns a specific DirectionChannel | |
virtual void | paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status) |
Overload so that we can reconfigure when our params get changed. | |
Protected Member Functions | |
virtual void | buildSubChans () |
(re-)build our subchannels | |
virtual void | doInput (const InputFrame &inframe) |
MotionChannel only required luminosity input. | |
Protected Attributes | |
NModelParam< PyramidType > | itsPyrType |
type of pyramid to use in our DirectionChannel subcomponents | |
OModelParam< uint > | itsNumDirs |
number of DirectionChannel subcomponents |
A composite channel containing a set of direction channels.
Definition at line 49 of file MotionChannel.H.
MotionChannel::MotionChannel | ( | OptionManager & | mgr | ) |
MotionChannel::~MotionChannel | ( | ) | [virtual] |
destructor
Definition at line 65 of file MotionChannel.C.
void MotionChannel::buildSubChans | ( | ) | [protected, virtual] |
(re-)build our subchannels
Definition at line 78 of file MotionChannel.C.
References ComplexChannel::addSubChan(), ModelComponent::getManager(), OModelParam< T >::getVal(), NModelParam< T >::getVal(), itsNumDirs, itsPyrType, makeSharedComp(), MC_RECURSE, and ComplexChannel::removeAllSubChans().
Referenced by MotionChannel(), and paramChanged().
DirectionChannel & MotionChannel::dirChan | ( | const uint | idx | ) | const [virtual] |
returns a specific DirectionChannel
Definition at line 71 of file MotionChannel.C.
References ComplexChannel::subChan().
void MotionChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
MotionChannel only required luminosity input.
Implements ChannelBase.
Definition at line 119 of file MotionChannel.C.
References ASSERT, Image< T >::initialized(), ComplexChannel::numChans(), and ComplexChannel::subChan().
void MotionChannel::paramChanged | ( | ModelParamBase *const | param, | |
const bool | valueChanged, | |||
ParamClient::ChangeStatus * | status | |||
) | [virtual] |
Overload so that we can reconfigure when our params get changed.
Reimplemented from ModelComponent.
Definition at line 104 of file MotionChannel.C.
References buildSubChans(), OModelParam< T >::getVal(), itsNumDirs, and ComplexChannel::numChans().
OModelParam<uint> MotionChannel::itsNumDirs [protected] |
number of DirectionChannel subcomponents
Definition at line 71 of file MotionChannel.H.
Referenced by buildSubChans(), and paramChanged().
NModelParam<PyramidType> MotionChannel::itsPyrType [protected] |
type of pyramid to use in our DirectionChannel subcomponents
Definition at line 68 of file MotionChannel.H.
Referenced by buildSubChans().