A composite channel containing a set of direction spatio temporal channels. More...
#include <Channels/MotionSpatioTemporalChannel.H>
Public Member Functions | |
MotionSpatioTemporalChannel (OptionManager &mgr) | |
Construct. | |
virtual | ~MotionSpatioTemporalChannel () |
destructor | |
virtual DirectionSpatioTemporalChannel & | dirChan (const uint idx) const |
returns a specific DirectionSpatioTemporalChannel | |
virtual void | paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status) |
Overload so that we can reconfigure when our params get changed. | |
virtual Image< float > | getOutput () |
Protected Member Functions | |
virtual void | buildSubChans () |
(re-)build our subchannels | |
virtual void | doInput (const InputFrame &inframe) |
MotionSpatioTemporalChannel only required luminosity input. | |
void | computeConspicuityMap () |
Image< float > | getV1ObjectMotionMap () |
Image< float > | getMTObjectMotionMap () |
Image< float > | downSizeMax (Image< float > img, uint scale) |
Protected Attributes | |
NModelParam< PyramidType > | itsPyrType |
type of pyramid to use in our DirectionChannel subcomponents | |
OModelParam< uint > | itsNumDirs |
number of DirectionSpatioTemporalChannel subcomponents | |
OModelParam< uint > | itsNumSpeeds |
rutz::shared_ptr< MiddleTemporal > | itsMT |
its Medial Temporal module | |
nub::ref< FoeDetector > | itsFoeDetector |
its Focus of Expansion detector | |
std::vector< std::vector < nub::ref < DirectionSpatioTemporalChannel > > > | itsDirectionSpatioTemporalChannels |
the various directional pyrbuilders | |
std::vector< std::vector < ImageSet< float > > > | itsRawSpatioTemporalEnergy |
raw motion energy for each direction | |
std::vector< ImageSet< float > > | itsSpatioTemporalEnergy |
std::vector< ImageSet< float > > | itsSpatioTemporalEnergyOptimalShift |
Image< byte > | itsCurrentImage |
Image< float > | itsConspicuityMap |
int | itsCurrentFoeMapIndex |
rutz::shared_ptr< XWinManaged > | itsWin |
A composite channel containing a set of direction spatio temporal channels.
Definition at line 55 of file MotionSpatioTemporalChannel.H.
MotionSpatioTemporalChannel::MotionSpatioTemporalChannel | ( | OptionManager & | mgr | ) |
Construct.
Definition at line 61 of file MotionSpatioTemporalChannel.C.
References ModelComponent::addSubComponent(), buildSubChans(), itsFoeDetector, itsMT, and rutz::shared_ptr< T >::reset().
MotionSpatioTemporalChannel::~MotionSpatioTemporalChannel | ( | ) | [virtual] |
destructor
Definition at line 85 of file MotionSpatioTemporalChannel.C.
void MotionSpatioTemporalChannel::buildSubChans | ( | ) | [protected, virtual] |
(re-)build our subchannels
Definition at line 99 of file MotionSpatioTemporalChannel.C.
References ComplexChannel::addSubChan(), ModelComponent::getManager(), OModelParam< T >::getVal(), NModelParam< T >::getVal(), itsDirectionSpatioTemporalChannels, itsNumDirs, itsPyrType, itsRawSpatioTemporalEnergy, makeSharedComp(), MC_RECURSE, and ComplexChannel::removeAllSubChans().
Referenced by MotionSpatioTemporalChannel(), and paramChanged().
DirectionSpatioTemporalChannel & MotionSpatioTemporalChannel::dirChan | ( | const uint | idx | ) | const [virtual] |
returns a specific DirectionSpatioTemporalChannel
Definition at line 92 of file MotionSpatioTemporalChannel.C.
void MotionSpatioTemporalChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
MotionSpatioTemporalChannel only required luminosity input.
Implements ChannelBase.
Definition at line 161 of file MotionSpatioTemporalChannel.C.
References ASSERT, Timer::get(), OModelParam< T >::getVal(), image, Image< T >::initialized(), itsDirectionSpatioTemporalChannels, itsMT, itsNumDirs, itsRawSpatioTemporalEnergy, ComplexChannel::numChans(), and ComplexChannel::subChan().
Image< float > MotionSpatioTemporalChannel::getOutput | ( | ) | [virtual] |
Form output by combining output of subchannels. Sums the outputs of the subchannels and then optionally maxNormalize()'s the result
Reimplemented from ComplexChannel.
Definition at line 480 of file MotionSpatioTemporalChannel.C.
void MotionSpatioTemporalChannel::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 146 of file MotionSpatioTemporalChannel.C.
References buildSubChans(), OModelParam< T >::getVal(), itsNumDirs, and ComplexChannel::numChans().
std::vector<std::vector<nub::ref<DirectionSpatioTemporalChannel> > > MotionSpatioTemporalChannel::itsDirectionSpatioTemporalChannels [protected] |
the various directional pyrbuilders
Definition at line 105 of file MotionSpatioTemporalChannel.H.
Referenced by buildSubChans(), and doInput().
its Focus of Expansion detector
Definition at line 89 of file MotionSpatioTemporalChannel.H.
Referenced by MotionSpatioTemporalChannel().
its Medial Temporal module
Definition at line 86 of file MotionSpatioTemporalChannel.H.
Referenced by doInput(), and MotionSpatioTemporalChannel().
OModelParam<uint> MotionSpatioTemporalChannel::itsNumDirs [protected] |
number of DirectionSpatioTemporalChannel subcomponents
Definition at line 82 of file MotionSpatioTemporalChannel.H.
Referenced by buildSubChans(), doInput(), and paramChanged().
type of pyramid to use in our DirectionChannel subcomponents
Definition at line 79 of file MotionSpatioTemporalChannel.H.
Referenced by buildSubChans().
std::vector<std::vector<ImageSet<float> > > MotionSpatioTemporalChannel::itsRawSpatioTemporalEnergy [protected] |
raw motion energy for each direction
Definition at line 108 of file MotionSpatioTemporalChannel.H.
Referenced by buildSubChans(), and doInput().