Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ColorChannel Class Reference

#include <Channels/ColorChannel.H>

Inheritance diagram for ColorChannel:

Inheritance graph
[legend]
Collaboration diagram for ColorChannel:

Collaboration graph
[legend]
List of all members.

Detailed Description

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.

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 RedGreenChannelrg () const
 Get access the RedGreenChannel subchannel.
virtual GreenRedChannelgr () const
virtual BlueYellowChannelby () const
 Get access to the BlueYellowChannel subchannel.
virtual YellowBlueChannelyb () 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< ColorComputeTypeitsMethod


Constructor & Destructor Documentation

ColorChannel::ColorChannel OptionManager mgr  ) 
 

Construct with standard params.

Definition at line 56 of file ColorChannel.C.

References ComplexChannel::addSubChan(), ModelComponent::getManager(), and GVX_TRACE.

ColorChannel::~ColorChannel  )  [virtual]
 

Destructor.

Definition at line 137 of file ColorChannel.C.

References GVX_TRACE.


Member Function Documentation

BlueYellowChannel & ColorChannel::by  )  const [virtual]
 

Get access to the BlueYellowChannel subchannel.

Definition at line 116 of file ColorChannel.C.

References GVX_TRACE.

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, InputFrame::clipMask(), InputFrame::colorByte(), InputFrame::colorFloat(), COLsimple, COLstandard, COLstandardFull, InputFrame::fromGrayFloat(), getRGBY(), getRGBYsimple(), NModelParam< T >::getVal(), OModelParam< T >::getVal(), GVX_TRACE, Image< T >::initialized(), itsLumThresh, itsMethod, LFATAL, LINFO, InputFrame::pyrCache(), InputFrame::time(), and y.

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(), itsMethod, LINFO, ModelComponent::paramChanged(), and ComplexChannel::removeAllSubChans().

RedGreenChannel & ColorChannel::rg  )  const [virtual]
 

Get access the RedGreenChannel subchannel.

Definition at line 109 of file ColorChannel.C.

References GVX_TRACE.

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().


Member Data Documentation

NModelParam<float> ColorChannel::itsLumThresh [protected]
 

Luminance threshold (see getRGBY()).

Definition at line 82 of file ColorChannel.H.

Referenced by doInput().


The documentation for this class was generated from the following files:
Generated on Sun Nov 22 13:45:35 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4