RetinaCT Class Reference

#include <Neuro/Retina.H>

Inheritance diagram for RetinaCT:
Inheritance graph
[legend]
Collaboration diagram for RetinaCT:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RetinaCT (OptionManager &mgr, const std::string &descrName="Cortical Transform", const std::string &tagName="RetinaCT")
 Constructor.
Rectangle getRawInputRectangle (const Dims &indims, const Dims &outdims) const
 Get a rectangle delineating the raw input image area.
virtual ~RetinaCT ()
 Destructor.

Protected Member Functions

virtual void start1 ()
 Overridden so we can load our clip mask file, if any.
virtual void postInputFrame (SimEventQueue &q, InputFrame &ifr)
 post a SimEventRetinaSpaceVariantmage
virtual Image< PixRGB< byte > > transform (const Image< PixRGB< byte > > &image)
 Transform the image after it has already been shifted, cropped, foveated, etc.

Protected Attributes

OModelParam< float > itsSurrFac
OModelParam< SVChanLevelsitsLevels

Detailed Description

Space variant transform using a foveated model. Could be used as a model of spatial input of retinal ganglion cell's, thalamus, colliculus or early visual cortex

Can do foveation, shifting, flipping, framing in log-polar coords.

Definition at line 293 of file Retina.H.


Constructor & Destructor Documentation

RetinaCT::RetinaCT ( OptionManager mgr,
const std::string descrName = "Cortical Transform",
const std::string tagName = "RetinaCT" 
)

Constructor.

See ModelComponent.H for details

Definition at line 504 of file Retina.C.

References ModelComponent::addSubComponent().

RetinaCT::~RetinaCT (  )  [virtual]

Destructor.

Definition at line 515 of file Retina.C.


Member Function Documentation

Rectangle RetinaCT::getRawInputRectangle ( const Dims indims,
const Dims outdims 
) const [virtual]

Get a rectangle delineating the raw input image area.

As the raw input may be embedded into a background, shifted, cropped by a field of view, etc., this function allows users to recover the boundaries of the original frames. Note that the rectangle will be possibly cropped to fit within the dims of the Retina's output. A border may be specified that will be used to shrink (if positive) or enlarge (if negative) the returned rectangle (and will be applied before the rectangle is cropped to dims). The default implementation in the base class is to just return a rectangle at (0,0) with dims of the raw input.

Reimplemented from RetinaAdapter.

Definition at line 526 of file Retina.C.

Referenced by postInputFrame().

void RetinaCT::postInputFrame ( SimEventQueue q,
InputFrame ifr 
) [protected, virtual]

post a SimEventRetinaSpaceVariantmage

Reimplemented from RetinaAdapter.

Definition at line 533 of file Retina.C.

References Image< T >::getDims(), getRawInputRectangle(), RetinaAdapter::getRawToRetinalOffset(), RetinaAdapter::itsRawInput, and SimEventQueue::post().

void RetinaCT::start1 (  )  [protected, virtual]

Overridden so we can load our clip mask file, if any.

Reimplemented from RetinaAdapter.

Definition at line 519 of file Retina.C.

References ModelComponent::getRootObject(), MC_IGNORE_MISSING, MC_RECURSE, and ModelComponent::setModelParamVal().

Image< PixRGB< byte > > RetinaCT::transform ( const Image< PixRGB< byte > > &  image  )  [protected, virtual]

Transform the image after it has already been shifted, cropped, foveated, etc.

In RetinaStd, this is a no-op

Implements RetinaAdapter.

Definition at line 545 of file Retina.C.

References SVChanLevels::getMaxVariance(), OModelParam< T >::getVal(), and ImageSet< T >::size().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:46 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3