


Definition at line 1707 of file ContourChannel.C.
Public Member Functions | |
| ContourChannel (OptionManager &mgr, const std::string &saveprefix="contourout") | |
| virtual | ~ContourChannel () |
| virtual bool | outputAvailable () const |
| Query whether the channel is ready to give yield valid output. | |
| virtual Dims | getMapDims () const |
| Return the dimensions of the output image. | |
| virtual uint | numSubmaps () const |
| Return the number of feature maps represented by this channel. | |
| virtual Image< float > | getSubmap (unsigned int index) const |
| Not implemented for ContourChannel. | |
| virtual std::string | getSubmapName (unsigned int index) const |
| Get the name/description of the feature map at the given index. | |
| virtual void | getFeatures (const Point2D< int > &locn, std::vector< float > &mean) const |
| Not implemented for ContourChannel. | |
| virtual void | getFeaturesBatch (std::vector< Point2D< int > * > *locn, std::vector< std::vector< float > > *mean, int *count) const |
| virtual Image< float > | getOutput () |
| The output will be the size of the feature map level in the pyramid. | |
| virtual void | saveResults (const nub::ref< FrameOstream > &ofs) |
| Save our various maps using a FrameOstream. | |
Protected Member Functions | |
| virtual void | paramChanged (ModelParamBase *param, const bool valueChanged, ParamClient::ChangeStatus *status) |
| Called whenever a ModelParamBase has its value changed. | |
| virtual void | start1 () |
| This is called from within start() before the subcomponents start. | |
| virtual void | doInput (const InputFrame &inframe) |
| Subclasses override this implementation of the input() function. | |
| virtual void | killCaches () |
| Subclasses override this to clear any caches they may maintain. | |
| virtual void | saveStats (const Image< float > img, const short idx) |
|
|
||||||||||||
|
Not implemented for ContourChannel.
Implements ChannelBase. Definition at line 1730 of file ContourChannel.C. References LFATAL. |
|
|
Return the dimensions of the output image.
Implements ChannelBase. Definition at line 2040 of file ContourChannel.C. References ChannelBase::getInputDims(), OModelParam< T >::getVal(), and LevelSpec::mapLevel(). |
|
|
The output will be the size of the feature map level in the pyramid. (I.e., the size of the output is given by getMapDims(). Implements ChannelBase. Definition at line 2063 of file ContourChannel.C. References OModelParam< T >::getVal(), and saveStats(). |
|
|
Not implemented for ContourChannel.
Implements ChannelBase. Definition at line 1721 of file ContourChannel.C. References LFATAL. |
|
|
Get the name/description of the feature map at the given index. This function is intended to be implemented by subclasses so that it recurses into any nested channels, mapping nested submaps into a linear sequence of indices. The output of this function is intended only to be human-readable (e.g. for labeling image displays), and does not have to follow any particular parseable syntax. Implements ChannelBase. Definition at line 2054 of file ContourChannel.C. References angle, OModelParam< T >::getVal(), and sformat(). |
|
|
Subclasses override this to clear any caches they may maintain. Subclasses must be sure to explicitly call their base class's version of this function!. This function will be called by ChannelBase when a new input image is received, or when new parameters are read from a ParamMap, etc. Subclasses may also call this function when they know that caches may have become invalid. Calling this explicitly after you have obtained the output from a channel may save you some memory. Reimplemented from ChannelBase. Definition at line 2333 of file ContourChannel.C. References ChannelBase::killCaches(). |
|
|
Return the number of feature maps represented by this channel.
Implements ChannelBase. Definition at line 2048 of file ContourChannel.C. References OModelParam< T >::getVal(). |
|
|
Query whether the channel is ready to give yield valid output. In some cases (e.g. with motion channels), it may take several input frames before the channel is fully initialized. Implements ChannelBase. Definition at line 2034 of file ContourChannel.C. References Image< T >::initialized(). |
|
||||||||||||||||
|
Called whenever a ModelParamBase has its value changed. Subclasses of ModelComponent should override this function if they need to do any internal reconfiguration when their parameters change value (whether due to a command-line option, or a setModelParamString(), or a readParamsFrom()). See OrientationChannel::paramChanged() in Channels/OrientationChannel.C for an example; also see SaccadeControllerConfigurator::paramChanged() in Neuro/SaccadeControllers.C for for how to use this to select subcomponents at runtime.
Reimplemented from ModelComponent. Definition at line 2125 of file ContourChannel.C. References ModelComponent::addSubComponent(), ModelComponent::getManager(), OModelParam< T >::getVal(), LFATAL, MC_RECURSE, and ModelComponent::removeSubComponent(). |
|
|
Save our various maps using a FrameOstream.
Reimplemented from ChannelBase. Definition at line 2119 of file ContourChannel.C. References dummy_namespace_to_avoid_gcc411_bug_ContourChannel_C::SaveSet::saveAll(). |
|
|
This is called from within start() before the subcomponents start.
Reimplemented from ModelComponent. Definition at line 1753 of file ContourChannel.C. References OModelParam< T >::getOptionDef(), OModelParam< T >::getVal(), LFATAL, ModelOptionDef::longoptname, and ModelComponent::start1(). |
1.4.4