A double opponent color channel class that combines r/g, b/y subchannels. More...
#include <Channels/CIELabChannel.H>
Public Member Functions | |
CIELabChannel (OptionManager &mgr) | |
Construct with standard params. | |
virtual | ~CIELabChannel () |
Destructor. | |
virtual ValueIntensityChannel & | L () const |
Get access the Luminance subchannel. | |
virtual Hue1Channel & | A () const |
Get access to the Red-Green Hue subchannel. | |
virtual Hue2Channel & | B () const |
Get access to the Blue-Yellow Hue subchannel. | |
Protected Member Functions | |
virtual void | doInput (const InputFrame &inframe) |
ColorChannel requires only color input. | |
void | setL (nub::ref< ValueIntensityChannel > L) |
Install a different value intensity channel. | |
void | setA (nub::ref< Hue1Channel > A) |
Install a different H1 red/green channel. | |
void | setB (nub::ref< Hue2Channel > B) |
Install a different H2 blue/yellow channel. |
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 CIELabChannel.H.
CIELabChannel::CIELabChannel | ( | OptionManager & | mgr | ) |
Construct with standard params.
Definition at line 55 of file CIELabChannel.C.
References ComplexChannel::addSubChan().
CIELabChannel::~CIELabChannel | ( | ) | [virtual] |
Destructor.
Definition at line 89 of file CIELabChannel.C.
Hue1Channel & CIELabChannel::A | ( | ) | const [virtual] |
Get access to the Red-Green Hue subchannel.
Definition at line 75 of file CIELabChannel.C.
Hue2Channel & CIELabChannel::B | ( | ) | const [virtual] |
Get access to the Blue-Yellow Hue subchannel.
Definition at line 82 of file CIELabChannel.C.
void CIELabChannel::doInput | ( | const InputFrame & | inframe | ) | [protected, virtual] |
ColorChannel requires only color input.
Implements ChannelBase.
Definition at line 95 of file CIELabChannel.C.
References ASSERT, Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::initialized(), Pixels< T, 3 >::p, and Image< T >::resize().
ValueIntensityChannel & CIELabChannel::L | ( | ) | const [virtual] |
Get access the Luminance subchannel.
Definition at line 68 of file CIELabChannel.C.
void CIELabChannel::setA | ( | nub::ref< Hue1Channel > | A | ) | [protected] |
Install a different H1 red/green channel.
Definition at line 146 of file CIELabChannel.C.
References ComplexChannel::addSubChan(), and ComplexChannel::removeSubChan().
void CIELabChannel::setB | ( | nub::ref< Hue2Channel > | B | ) | [protected] |
Install a different H2 blue/yellow channel.
Definition at line 154 of file CIELabChannel.C.
References ComplexChannel::addSubChan(), and ComplexChannel::removeSubChan().
void CIELabChannel::setL | ( | nub::ref< ValueIntensityChannel > | L | ) | [protected] |
Install a different value intensity channel.
Definition at line 138 of file CIELabChannel.C.
References ComplexChannel::addSubChan(), and ComplexChannel::removeSubChan().