This is a derivation of VisualCortex using SingleChannelSurprise channels. More...
#include <Neuro/VisualCortexSurprise.H>
Public Member Functions | |
VisualCortexSurprise (OptionManager &mgr, const std::string &descrName="Visual Cortex Surprise", const std::string &tagName="VisualCortexSurprise") | |
Constructor without any channels. | |
virtual | ~VisualCortexSurprise () |
Virtual destructor for safe inheritance. | |
Static Public Member Functions | |
static void | registerSurpriseTypes (OptionManager &mgr) |
Register surprise channel types with SubmapAlgorithm::getFactory(). | |
Protected Member Functions | |
virtual Image< float > | postProcessOutputMap (const Image< float > &outmap) |
post-process raw weighted sum of channel output maps, surprise-style | |
virtual void | paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status) |
Rebuild our channels if surprise model type changes. | |
Protected Attributes | |
OModelParam< std::string > | itsStype |
type of surprise models | |
OModelParam< int > | itsNormSurp |
OModelParam< float > | itsSurpriseThresh |
apply weak spatial competition to output? | |
OModelParam< float > | itsSurpriseSemisat |
surprise nonlinerity semisat | |
OModelParam< float > | itsSurpriseExp |
surprise nonlinerity exponent |
This is a derivation of VisualCortex using SingleChannelSurprise channels.
It computes Surprise instead of computing saliency.
Definition at line 46 of file VisualCortexSurprise.H.
VisualCortexSurprise::VisualCortexSurprise | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Visual Cortex Surprise" , |
|||
const std::string & | tagName = "VisualCortexSurprise" | |||
) |
Constructor without any channels.
Definition at line 83 of file VisualCortexSurprise.C.
References OModelParam< T >::getVal(), itsStype, registerSurpriseTypes(), and OptionManager::setOptionValString().
VisualCortexSurprise::~VisualCortexSurprise | ( | ) | [virtual] |
Virtual destructor for safe inheritance.
Definition at line 101 of file VisualCortexSurprise.C.
void VisualCortexSurprise::paramChanged | ( | ModelParamBase *const | param, | |
const bool | valueChanged, | |||
ParamClient::ChangeStatus * | status | |||
) | [protected, virtual] |
Rebuild our channels if surprise model type changes.
Reimplemented from RawVisualCortex.
Definition at line 134 of file VisualCortexSurprise.C.
References ModelComponent::getManager(), OModelParam< T >::getVal(), itsStype, and OptionManager::setOptionValString().
Image< float > VisualCortexSurprise::postProcessOutputMap | ( | const Image< float > & | outmap | ) | [protected, virtual] |
post-process raw weighted sum of channel output maps, surprise-style
Reimplemented from RawVisualCortex.
Definition at line 152 of file VisualCortexSurprise.C.
References ComplexChannel::getSubchanTotalWeight(), OModelParam< T >::getVal(), inplaceRectify(), inplaceSigmoid(), RawVisualCortex::itsNormType, itsSurpriseExp, itsSurpriseSemisat, itsSurpriseThresh, RawVisualCortex::itsUseMax, maxNormalize(), maxNormTypeName(), ComplexChannel::numChans(), VCXNORM_FANCYWEAK, and VCXNORM_SURPRISE.
void VisualCortexSurprise::registerSurpriseTypes | ( | OptionManager & | mgr | ) | [static] |
Register surprise channel types with SubmapAlgorithm::getFactory().
Definition at line 105 of file VisualCortexSurprise.C.
References rutz::factory< nub::ref< P > >::is_valid_key().
Referenced by SingleChannelBeoServer::SingleChannelBeoServer(), and VisualCortexSurprise().
OModelParam<std::string> VisualCortexSurprise::itsStype [protected] |
type of surprise models
Definition at line 61 of file VisualCortexSurprise.H.
Referenced by paramChanged(), and VisualCortexSurprise().
OModelParam<float> VisualCortexSurprise::itsSurpriseExp [protected] |
surprise nonlinerity exponent
Definition at line 65 of file VisualCortexSurprise.H.
Referenced by postProcessOutputMap().
OModelParam<float> VisualCortexSurprise::itsSurpriseSemisat [protected] |
surprise nonlinerity semisat
Definition at line 64 of file VisualCortexSurprise.H.
Referenced by postProcessOutputMap().
OModelParam<float> VisualCortexSurprise::itsSurpriseThresh [protected] |
apply weak spatial competition to output?
surprise nonlinerity threshold
Definition at line 63 of file VisualCortexSurprise.H.
Referenced by postProcessOutputMap().