
SingleSvChannel represents a single stream of processing in space variant mode. More...
#include <Channels/SingleSvChannel.H>


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 ¢erlev, uint &surroundlev) const |
| virtual uint | maxIndex () const |
| get the maximum depth of the feature pyramid | |
Protected Attributes | |
| OModelParam< Dims > | itsChanDims |
| OModelParam< SVChanLevels > | itsLevels |
| NModelParam< bool > | itsTakeSquare |
| NModelParam< bool > | isPolarized |
| NModelParam< bool > | itsUseSpaceVariantBoundary |
SingleSvChannel represents a single stream of processing in space variant mode.
Definition at line 48 of file SingleSvChannel.H.
| SingleSvChannel::SingleSvChannel | ( | OptionManager & | mgr, | |
| const std::string & | descrName, | |||
| const std::string & | tagName, | |||
| const VisualFeature | vs, | |||
| const SpaceVariantModule & | spacevariantmodule | |||
| ) |
Constructor. See ChannelBase.H.
| 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.
| 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.
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().
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.
1.6.3