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

SingleOpponentChannel Class Reference

Inheritance diagram for SingleOpponentChannel:

Inheritance graph
[legend]
Collaboration diagram for SingleOpponentChannel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 43 of file SingleOpponentChannel.H.

Public Member Functions

 SingleOpponentChannel (OptionManager &mgr, const std::string &descrName, const std::string &tagName, const VisualFeature vs, rutz::shared_ptr< PyrBuilder< float > > pyr)
 Constructor. See ChannelBase.H.
virtual void reset1 ()
 Reset SingleOpponentChannel.
virtual Image< float > centerSurround (const uint cntr, const uint surr) const
 Get the center/surround image for the given levels.
virtual void centerSurround (const uint cntr, const uint surr, Image< float > &pos, Image< float > &neg) const
 Get the center/surround, split into positive and negative parts.
virtual void getFeatures (const Point2D< int > &locn, std::vector< float > &mean) const
virtual void getFeaturesBatch (std::vector< Point2D< int > * > *locn, std::vector< std::vector< float > > *mean, int *count) const
void singleOpponentInput (const Dims &dims, const ImageSet< float > &centerPyr, const ImageSet< float > &surroundPyr, const SimTime &t, const Image< byte > &clipMask)
 Single-opponent SingleChannel requires center and surround pyramids.

Protected Member Functions

void storePyramid2 (const ImageSet< float > &p, const SimTime &t)
 Stores p as the channel's surround pyramid at time t.


Constructor & Destructor Documentation

SingleOpponentChannel::SingleOpponentChannel OptionManager mgr,
const std::string descrName,
const std::string tagName,
const VisualFeature  vs,
rutz::shared_ptr< PyrBuilder< float > >  pyr
 

Constructor. See ChannelBase.H.

Parameters:
mgr our ModelManager (see ModelManager.H)
descrName descriptive name for human usage
tagName name for ParamMap usage
vs The VisualFeature implemented by the channel
pyr The type of pyramid that should be used.

Definition at line 49 of file SingleOpponentChannel.C.


Member Function Documentation

void SingleOpponentChannel::centerSurround const uint  cntr,
const uint  surr,
Image< float > &  pos,
Image< float > &  neg
const [virtual]
 

Get the center/surround, split into positive and negative parts.

Reimplemented from SingleChannel.

Definition at line 110 of file SingleOpponentChannel.C.

References ASSERT, centerSurroundDiffSingleOpponent(), centerSurroundSingleOpponent(), SingleChannel::clipPyramid(), LevelSpec::csOK(), exp(), OModelParam< T >::getVal(), GVX_TRACE, i, SingleChannel::itsLevelSpec, SingleChannel::itsTimeDecay, LFATAL, SingleChannel::pyramid(), SingleChannel::pyramidTime(), SimTime::secs(), and t.

Image< float > SingleOpponentChannel::centerSurround const uint  cntr,
const uint  surr
const [virtual]
 

Get the center/surround image for the given levels.

Reimplemented from SingleChannel.

Definition at line 68 of file SingleOpponentChannel.C.

References ASSERT, centerSurroundDiffSingleOpponent(), centerSurroundSingleOpponent(), SingleChannel::clipPyramid(), LevelSpec::csOK(), exp(), NModelParam< T >::getVal(), OModelParam< T >::getVal(), GVX_TRACE, i, SingleChannel::itsLevelSpec, SingleChannel::itsTakeAbs, SingleChannel::itsTimeDecay, LFATAL, SingleChannel::pyramid(), SingleChannel::pyramidTime(), SimTime::secs(), and t.

void SingleOpponentChannel::reset1  )  [virtual]
 

Reset SingleOpponentChannel.

Reimplemented from SingleChannel.

Definition at line 60 of file SingleOpponentChannel.C.

References SingleChannel::reset1().

void SingleOpponentChannel::singleOpponentInput const Dims dims,
const ImageSet< float > &  centerPyr,
const ImageSet< float > &  surroundPyr,
const SimTime t,
const Image< byte > &  clipMask
 

Single-opponent SingleChannel requires center and surround pyramids.

Definition at line 247 of file SingleOpponentChannel.C.

References GVX_TRACE, SingleChannel::killCaches(), SingleChannel::setClipPyramid(), ChannelBase::setInputDims(), SingleChannel::storePyramid(), and storePyramid2().

Referenced by SOColorChannel::doInput().

void SingleOpponentChannel::storePyramid2 const ImageSet< float > &  p,
const SimTime t
[protected]
 

Stores p as the channel's surround pyramid at time t.

Definition at line 262 of file SingleOpponentChannel.C.

References ASSERT, CLFATAL, OModelParam< T >::getVal(), GVX_TRACE, isDyadic(), SingleChannel::itsLevelSpec, SingleChannel::itsQlen, LevelSpec::levMin(), and LevelSpec::maxDepth().

Referenced by singleOpponentInput().


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