SingleSvChannel Class Reference

SingleSvChannel represents a single stream of processing in space variant mode. More...

#include <Channels/SingleSvChannel.H>

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

List of all members.

Public Member Functions

 SingleSvChannel (OptionManager &mgr, const std::string &descrName, const std::string &tagName, const VisualFeature vs, const SpaceVariantModule &spacevariantmodule)
 Constructor. See ChannelBase.H.
virtual ~SingleSvChannel ()
 destructor
virtual ImageSet< float > computePyramid (const Image< float > &bwimg, const rutz::shared_ptr< PyramidCache< float > > &cache)
 Computes the channel's pyramid but doesn't store it.
virtual Dims getMapDims () const
 get output map dimensions
virtual Image< float > centerSurround (const uint cntr, const uint surr) const
 non-op for this class
virtual void centerSurround (const uint cntr, const uint surr, Image< float > &pos, Image< float > &neg) const
 non-op for this class
virtual std::string getSubmapName (const uint index) const
 get the submap name
virtual std::string getSubmapNameShort (const uint index) const
 get the submap short name
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
virtual LevelSpec getLevelSpec () const
 non-op for this class
virtual void setClipPyramid (const Image< byte > &clipMask)
 make the clipping pyramid from the clip mask
virtual void storePyramid (const ImageSet< float > &p, const SimTime &t) virtual Image< float > getRawCSmap(const uint idx) const
virtual int getMinPyrLevel () const
virtual int getMaxPyrLevel () const
void computeSubChanSplit (const uint idx, Image< float > &pos, Image< float > &neg) const
Image< float > computeSubChan (const uint idx) const

Protected Member Functions

virtual void start1 ()
virtual uint csToIndex (uint centerlev, uint surroundlev) const
virtual indexToCS (const uint idx, uint &centerlev, uint &surroundlev) const
virtual uint maxIndex () const
 get the maximum depth of the feature pyramid

Protected Attributes

OModelParam< DimsitsChanDims
OModelParam< SVChanLevelsitsLevels
NModelParam< bool > itsTakeSquare
NModelParam< bool > isPolarized
NModelParam< bool > itsUseSpaceVariantBoundary

Detailed Description

SingleSvChannel represents a single stream of processing in space variant mode.

Definition at line 48 of file SingleSvChannel.H.


Constructor & Destructor Documentation

SingleSvChannel::SingleSvChannel ( OptionManager mgr,
const std::string descrName,
const std::string tagName,
const VisualFeature  vs,
const SpaceVariantModule spacevariantmodule 
)

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
spacevariantmodule the module to use for the sv channel

Definition at line 41 of file SingleSvChannel.C.

References ModelComponent::hideOption().

SingleSvChannel::~SingleSvChannel (  )  [virtual]

destructor

Definition at line 59 of file SingleSvChannel.C.


Member Function Documentation

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

non-op for this class

Definition at line 109 of file SingleSvChannel.C.

Image< float > SingleSvChannel::centerSurround ( const uint  cntr,
const uint  surr 
) const [virtual]

non-op for this class

Definition at line 100 of file SingleSvChannel.C.

ImageSet< float > SingleSvChannel::computePyramid ( const Image< float > &  bwimg,
const rutz::shared_ptr< PyramidCache< float > > &  cache 
) [virtual]

Computes the channel's pyramid but doesn't store it.

Definition at line 66 of file SingleSvChannel.C.

References doLowThresh(), doLowThreshAbs(), doRectify(), and OModelParam< T >::getVal().

LevelSpec SingleSvChannel::getLevelSpec (  )  const [virtual]

non-op for this class

Definition at line 200 of file SingleSvChannel.C.

Dims SingleSvChannel::getMapDims (  )  const [virtual]

get output map dimensions

Implements ChannelBase.

Definition at line 93 of file SingleSvChannel.C.

References OModelParam< T >::getVal().

Referenced by setClipPyramid().

std::string SingleSvChannel::getSubmapName ( const uint  index  )  const [virtual]

get the submap name

Implements ChannelBase.

Definition at line 117 of file SingleSvChannel.C.

References ASSERT, ModelComponent::descriptiveName(), ChannelBase::numSubmaps(), and sformat().

std::string SingleSvChannel::getSubmapNameShort ( const uint  index  )  const [virtual]

get the submap short name

Implements ChannelBase.

Definition at line 125 of file SingleSvChannel.C.

References ASSERT, ChannelBase::numSubmaps(), sformat(), and ModelComponent::tagName().

uint SingleSvChannel::maxIndex (  )  const [protected, virtual]

get the maximum depth of the feature pyramid

Definition at line 394 of file SingleSvChannel.C.

References OModelParam< T >::getVal(), and SVChanLevels::numLevels().

Referenced by setClipPyramid().

void SingleSvChannel::setClipPyramid ( const Image< byte > &  clipMask  )  [virtual]

make the clipping pyramid from the clip mask

Definition at line 208 of file SingleSvChannel.C.

References Image< T >::clear(), getMapDims(), Image< T >::initialized(), maxIndex(), and rescale().

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

If you overload this, make sure you call SingleChannel::start1() at the beginning of your overload

Reimplemented from ModelComponent.

Definition at line 373 of file SingleSvChannel.C.


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