A double opponent color channel class that combines r/g, b/y subchannels. More...
#include <Channels/ColorChannel.H>
Public Member Functions | |
ColorChannel (OptionManager &mgr) | |
Construct with standard params. | |
virtual | ~ColorChannel () |
Destructor. | |
virtual void | paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status) |
Overload so that we can reconfigure when our params get changed. | |
virtual RedGreenChannel & | rg () const |
Get access the RedGreenChannel subchannel. | |
virtual GreenRedChannel & | gr () const |
virtual BlueYellowChannel & | by () const |
Get access to the BlueYellowChannel subchannel. | |
virtual YellowBlueChannel & | yb () const |
Protected Member Functions | |
virtual void | doInput (const InputFrame &inframe) |
ColorChannel requires only color input. | |
void | setRG (nub::ref< RedGreenChannel > rg) |
Install a different red/green channel. | |
void | setGR (nub::ref< GreenRedChannel > gr) |
Install a different red/green channel. | |
void | setBY (nub::ref< BlueYellowChannel > by) |
Install a different blue/yellow channel. | |
void | setYB (nub::ref< YellowBlueChannel > yb) |
Install a different blue/yellow channel. | |
Protected Attributes | |
NModelParam< float > | itsLumThresh |
Luminance threshold (see getRGBY()). | |
OModelParam< ColorComputeType > | itsMethod |
A double opponent color channel class that combines r/g, b/y subchannels.
This is an example of an heterogeneous complex channel where the various subchannels have distinct visual features. Thus, the JetSpec representation for such complex channel will be a series of independent single-channel representations, one for each subchannel.
Definition at line 57 of file ColorChannel.H.
ColorChannel::ColorChannel | ( | OptionManager & | mgr | ) |
Construct with standard params.
Definition at line 56 of file ColorChannel.C.
References ComplexChannel::addSubChan(), and ModelComponent::getManager().
ColorChannel::~ColorChannel | ( | ) | [virtual] |
Destructor.
Definition at line 137 of file ColorChannel.C.
BlueYellowChannel & ColorChannel::by | ( | ) | const [virtual] |
Get access to the BlueYellowChannel subchannel.
Definition at line 116 of file ColorChannel.C.
void ColorChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
ColorChannel requires only color input.
Implements ChannelBase.
Definition at line 143 of file ColorChannel.C.
References ASSERT, COLsimple, COLstandard, COLstandardFull, getRGBY(), getRGBYsimple(), OModelParam< T >::getVal(), NModelParam< T >::getVal(), Image< T >::initialized(), and itsLumThresh.
void ColorChannel::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 71 of file ColorChannel.C.
References ComplexChannel::addSubChan(), COLstandardFull, ModelComponent::getManager(), OModelParam< T >::getVal(), and ComplexChannel::removeAllSubChans().
RedGreenChannel & ColorChannel::rg | ( | ) | const [virtual] |
Get access the RedGreenChannel subchannel.
Definition at line 109 of file ColorChannel.C.
void ColorChannel::setBY | ( | nub::ref< BlueYellowChannel > | by | ) | [protected] |
Install a different blue/yellow channel.
Definition at line 199 of file ColorChannel.C.
References ComplexChannel::addSubChan(), and ComplexChannel::removeSubChan().
void ColorChannel::setGR | ( | nub::ref< GreenRedChannel > | gr | ) | [protected] |
Install a different red/green channel.
Definition at line 207 of file ColorChannel.C.
References ComplexChannel::addSubChan(), and ComplexChannel::removeSubChan().
void ColorChannel::setRG | ( | nub::ref< RedGreenChannel > | rg | ) | [protected] |
Install a different red/green channel.
Definition at line 191 of file ColorChannel.C.
References ComplexChannel::addSubChan(), and ComplexChannel::removeSubChan().
void ColorChannel::setYB | ( | nub::ref< YellowBlueChannel > | yb | ) | [protected] |
Install a different blue/yellow channel.
Definition at line 215 of file ColorChannel.C.
References ComplexChannel::addSubChan(), and ComplexChannel::removeSubChan().
NModelParam<float> ColorChannel::itsLumThresh [protected] |
Luminance threshold (see getRGBY()).
Definition at line 82 of file ColorChannel.H.
Referenced by doInput().