LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::opponentColor Class Reference

This functor generates an "opponent color" channel from the given two channels, one representing the center, the other representing the surround. More...

#include <ltiOpponentColor.h>

Inheritance diagram for lti::opponentColor:
Inheritance graph
[legend]
Collaboration diagram for lti::opponentColor:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 the parameters for the class opponentColor More...

Public Member Functions

 opponentColor ()
 opponentColor (const opponentColor &other)
virtual ~opponentColor ()
virtual const char * getTypeName () const
bool apply (const lti::channel &centerSrc, const lti::channel &surroundSrc, lti::channel &dest) const
opponentColorcopy (const opponentColor &other)
virtual functorclone () const
const parametersgetParameters () const

Detailed Description

This functor generates an "opponent color" channel from the given two channels, one representing the center, the other representing the surround.

The idea is to inhibit the response of a center region in a receptive field with the responce of a surround region.

                       ________
                      /        \
                     /   ____   \
                    |   /    \   |
                    |  |Center|  |
                    |   \____/   |
                     \ Surround /
                      \________/

Usually, the surround pyramid-level is higher (lower resolution) than the center, to simulate this consideration of a larger region in the receptive field.

Common used opponent color channels (Center-Surround) are the Red-Green, Green-Red, Blue-Yellow, Yellow-Blue. But of course other combinations can be employed (-Red+Green, etc.).


Constructor & Destructor Documentation

lti::opponentColor::opponentColor (  ) 

default constructor

lti::opponentColor::opponentColor ( const opponentColor other  ) 

copy constructor

Parameters:
other the object to be copied
virtual lti::opponentColor::~opponentColor (  )  [virtual]

destructor


Member Function Documentation

bool lti::opponentColor::apply ( const lti::channel centerSrc,
const lti::channel surroundSrc,
lti::channel dest 
) const

Apply.

Parameters:
centerSrc channel with the source data.
surroundSrc channel with the source data.
dest channel where the result will be left.
Returns:
true if apply successful or false otherwise.
virtual functor* lti::opponentColor::clone (  )  const [virtual]

returns a pointer to a clone of this functor.

Implements lti::functor.

opponentColor& lti::opponentColor::copy ( const opponentColor other  ) 

copy data of "other" functor.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::functor.

const parameters& lti::opponentColor::getParameters (  )  const

returns used parameters

Reimplemented from lti::transform.

virtual const char* lti::opponentColor::getTypeName (  )  const [virtual]

returns the name of this type ("opponentColor")

Reimplemented from lti::transform.


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:27:38 2010 for LTI-Lib by Doxygen 1.6.1