A composite channel containing a set of Disparity channels. More...
#include <Channels/StereoChannel.H>
Public Member Functions | |
StereoChannel (OptionManager &mgr) | |
Construct. | |
virtual | ~StereoChannel () |
destructor | |
virtual DisparityChannel & | dispChan (const uint idO, const uint idP) const |
Wraps ComplexChannel's subChan() and casts the result to DisparityChannel. | |
virtual void | paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status) |
Overload so that we can reconfigure when our params get changed. | |
void | setSecondImage (const Image< float > *bwimg) |
set the second image to complete stereo data | |
void | getRawFilteredImages (Image< float > ****fImgLE, Image< float > ****fImgRI) |
access method for easy viewing | |
Protected Member Functions | |
virtual void | buildSubChans () |
(re-)build our subchannels | |
virtual void | doInput (const InputFrame &inframe) |
StereoChannel only required luminosity input AT THIS POINT. | |
virtual void | start1 () |
overload start1() | |
Protected Attributes | |
NModelParam< PyramidType > | itsPyrType |
type of pyramid to use in our DisparityChannel subcomponents | |
OModelParam< uint > | itsNumTheta |
number of orientations of disparity subchannels | |
NModelParam< uint > | itsNumPhase |
number of phases of each orientations of disparity subchannels |
A composite channel containing a set of Disparity channels.
Definition at line 49 of file StereoChannel.H.
StereoChannel::StereoChannel | ( | OptionManager & | mgr | ) |
StereoChannel::~StereoChannel | ( | ) | [virtual] |
destructor
Definition at line 80 of file StereoChannel.C.
void StereoChannel::buildSubChans | ( | ) | [protected, virtual] |
(re-)build our subchannels
Definition at line 103 of file StereoChannel.C.
References ComplexChannel::addSubChan(), dispChan(), ModelComponent::exportOptions(), ModelComponent::getManager(), OModelParam< T >::getVal(), NModelParam< T >::getVal(), itsNumPhase, itsNumTheta, makeSharedComp(), MC_RECURSE, phase(), ComplexChannel::removeAllSubChans(), and DisparityChannel::setNumPhase().
Referenced by paramChanged(), and StereoChannel().
DisparityChannel & StereoChannel::dispChan | ( | const uint | idO, | |
const uint | idP | |||
) | const [virtual] |
Wraps ComplexChannel's subChan() and casts the result to DisparityChannel.
Definition at line 95 of file StereoChannel.C.
References NModelParam< T >::getVal(), itsNumPhase, and ComplexChannel::subChan().
Referenced by buildSubChans(), doInput(), and start1().
void StereoChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
StereoChannel only required luminosity input AT THIS POINT.
Implements ChannelBase.
Definition at line 210 of file StereoChannel.C.
References ASSERT, buildPyrGaussian(), dispChan(), DisparityChannel::doInput(), OModelParam< T >::getVal(), NModelParam< T >::getVal(), Image< T >::initialized(), itsNumPhase, itsNumTheta, and DisparityChannel::setRawFilteredImages().
access method for easy viewing
Definition at line 273 of file StereoChannel.C.
void StereoChannel::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 194 of file StereoChannel.C.
References buildSubChans(), OModelParam< T >::getVal(), NModelParam< T >::getVal(), itsNumPhase, itsNumTheta, and ComplexChannel::numChans().
void StereoChannel::setSecondImage | ( | const Image< float > * | bwimg | ) |
set the second image to complete stereo data
Definition at line 267 of file StereoChannel.C.
void StereoChannel::start1 | ( | ) | [protected, virtual] |
overload start1()
Reimplemented from ComplexChannel.
Definition at line 84 of file StereoChannel.C.
References dispChan(), SingleChannel::getLevelSpec(), and LevelSpec::maxDepth().
NModelParam<uint> StereoChannel::itsNumPhase [protected] |
number of phases of each orientations of disparity subchannels
Definition at line 81 of file StereoChannel.H.
Referenced by buildSubChans(), dispChan(), doInput(), and paramChanged().
OModelParam<uint> StereoChannel::itsNumTheta [protected] |
number of orientations of disparity subchannels
Definition at line 78 of file StereoChannel.H.
Referenced by buildSubChans(), doInput(), and paramChanged().
NModelParam<PyramidType> StereoChannel::itsPyrType [protected] |
type of pyramid to use in our DisparityChannel subcomponents
Definition at line 75 of file StereoChannel.H.