#include <Channels/SOColorChannel.H>
Public Member Functions | |
SOColorChannel (OptionManager &mgr) | |
Construct with standard params. | |
virtual | ~SOColorChannel () |
Destructor. | |
virtual SORedGreenChannel & | rg () const |
Get access the single opponent RedGreenChannel subchannel. | |
virtual SOGreenRedChannel & | gr () const |
Get access the single opponent GreenRedChannel subchannel. | |
virtual SOBlueYellowChannel & | by () const |
Get access to the single opponent BlueYellowChannel subchannel. | |
virtual SOYellowBlueChannel & | yb () const |
Get access to the single opponent YellowBlueChannel subchannel. | |
virtual RedChannel & | r () const |
Get access the RedChannel subchannel. | |
virtual GreenChannel & | g () const |
Get access the GreenChannel subchannel. | |
virtual BlueChannel & | b () const |
Get access to the BlueChannel subchannel. | |
virtual YellowChannel & | y () const |
Get access to the YellowChannel subchannel. | |
Protected Member Functions | |
virtual void | doInput (const InputFrame &inframe) |
SOColorChannel requires only color input. | |
void | setRG (nub::ref< SORedGreenChannel > RG) |
void | setGR (nub::ref< SOGreenRedChannel > GR) |
void | setBY (nub::ref< SOBlueYellowChannel > BY) |
void | setYB (nub::ref< SOYellowBlueChannel > YB) |
void | setR (nub::ref< RedChannel > R) |
void | setG (nub::ref< GreenChannel > G) |
void | setB (nub::ref< BlueChannel > B) |
void | setY (nub::ref< YellowChannel > Y) |
Protected Attributes | |
NModelParam< float > | itsLumThresh |
Luminance threshold (see getRGBY()). |
A single opponent color channel class that combines r/g, g/r, b/y and y/b 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 60 of file SOColorChannel.H.
SOColorChannel::SOColorChannel | ( | OptionManager & | mgr | ) |
Construct with standard params.
Definition at line 57 of file SOColorChannel.C.
References ComplexChannel::addSubChan(), and ComplexChannel::setSubchanTotalWeight().
SOColorChannel::~SOColorChannel | ( | ) | [virtual] |
Destructor.
Definition at line 100 of file SOColorChannel.C.
BlueChannel & SOColorChannel::b | ( | ) | const [virtual] |
Get access to the BlueChannel subchannel.
Definition at line 96 of file SOColorChannel.C.
Referenced by doInput().
SOBlueYellowChannel & SOColorChannel::by | ( | ) | const [virtual] |
Get access to the single opponent BlueYellowChannel subchannel.
Definition at line 92 of file SOColorChannel.C.
Referenced by doInput().
void SOColorChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
SOColorChannel requires only color input.
Implements ChannelBase.
Definition at line 106 of file SOColorChannel.C.
References ASSERT, b(), by(), g(), getRGBY(), NModelParam< T >::getVal(), gr(), Image< T >::initialized(), itsLumThresh, r(), rg(), SingleOpponentChannel::singleOpponentInput(), y(), and yb().
GreenChannel & SOColorChannel::g | ( | ) | const [virtual] |
Get access the GreenChannel subchannel.
Definition at line 95 of file SOColorChannel.C.
Referenced by doInput().
SOGreenRedChannel & SOColorChannel::gr | ( | ) | const [virtual] |
Get access the single opponent GreenRedChannel subchannel.
Definition at line 91 of file SOColorChannel.C.
Referenced by doInput().
RedChannel & SOColorChannel::r | ( | ) | const [virtual] |
Get access the RedChannel subchannel.
Definition at line 94 of file SOColorChannel.C.
Referenced by doInput().
SORedGreenChannel & SOColorChannel::rg | ( | ) | const [virtual] |
Get access the single opponent RedGreenChannel subchannel.
Definition at line 90 of file SOColorChannel.C.
Referenced by doInput().
YellowChannel & SOColorChannel::y | ( | ) | const [virtual] |
Get access to the YellowChannel subchannel.
Definition at line 97 of file SOColorChannel.C.
Referenced by doInput().
SOYellowBlueChannel & SOColorChannel::yb | ( | ) | const [virtual] |
Get access to the single opponent YellowBlueChannel subchannel.
Definition at line 93 of file SOColorChannel.C.
Referenced by doInput().
NModelParam<float> SOColorChannel::itsLumThresh [protected] |
Luminance threshold (see getRGBY()).
Definition at line 94 of file SOColorChannel.H.
Referenced by doInput().