An orientation-tuned gabor channel. More...
#include <Channels/GaborChannel.H>
Public Member Functions | |
GaborChannel (OptionManager &mgr, const uint oriIndex, const double ang) | |
Construct with standard params plus an orientation index for this object. | |
GaborChannel (OptionManager &mgr, const uint oriIndex, const double ang, const char *tag, const char *desc) | |
Overide the standard tag name. | |
virtual | ~GaborChannel () |
Destructor. | |
virtual void | readFrom (const ParamMap &pmap) |
Read params from the ParamMap. | |
virtual void | writeTo (ParamMap &pmap) const |
Write params to the ParamMap. | |
double | angle () const |
Get the preferred orientation (in degrees) of this channel. | |
Protected Member Functions | |
virtual void | start1 () |
void | resetPyramid () |
Protected Attributes | |
NModelParam< uint > | itsOriIndex |
NModelParam< double > | itsOrientation |
OModelParam< double > | itsGaborIntens |
OModelParam< OrientComputeType > | itsOriCompType |
determines the type of computation used to compute orientation | |
OModelParam< bool > | itsUseTrigTab |
An orientation-tuned gabor channel.
Definition at line 46 of file GaborChannel.H.
GaborChannel::GaborChannel | ( | OptionManager & | mgr, | |
const uint | oriIndex, | |||
const double | ang | |||
) |
Construct with standard params plus an orientation index for this object.
oriIndex | is used for various indexing such as with ParamMap and Jet interfacing. | |
ang | is the preferred orientation for this channel, in degrees (0..180). |
Definition at line 54 of file GaborChannel.C.
References ModelComponent::setDescriptiveName(), ModelComponent::setTagName(), NModelParam< T >::setVal(), and sformat().
GaborChannel::GaborChannel | ( | OptionManager & | mgr, | |
const uint | oriIndex, | |||
const double | ang, | |||
const char * | tag, | |||
const char * | desc | |||
) |
Overide the standard tag name.
Definition at line 70 of file GaborChannel.C.
References ModelComponent::setDescriptiveName(), ModelComponent::setTagName(), NModelParam< T >::setVal(), and sformat().
GaborChannel::~GaborChannel | ( | ) | [virtual] |
Destructor.
Definition at line 92 of file GaborChannel.C.
double GaborChannel::angle | ( | ) | const |
Get the preferred orientation (in degrees) of this channel.
Definition at line 128 of file GaborChannel.C.
References NModelParam< T >::getVal().
void GaborChannel::readFrom | ( | const ParamMap & | pmap | ) | [virtual] |
Read params from the ParamMap.
Reimplemented from SingleChannel.
Definition at line 96 of file GaborChannel.C.
References ParamMap::CHANGED, OModelParam< T >::getVal(), itsOriCompType, ParamMap::queryDoubleParam(), ParamMap::queryIntParam(), and OModelParam< T >::setVal().
void GaborChannel::start1 | ( | ) | [protected, virtual] |
If you overload this, make sure you call SingleChannel::start1() at the beginning of your overload
Reimplemented from SingleChannel.
Definition at line 85 of file GaborChannel.C.
void GaborChannel::writeTo | ( | ParamMap & | pmap | ) | const [virtual] |
Write params to the ParamMap.
Reimplemented from SingleChannel.
Definition at line 120 of file GaborChannel.C.
References OModelParam< T >::getVal(), itsOriCompType, ParamMap::putDoubleParam(), and ParamMap::putIntParam().
OModelParam<OrientComputeType> GaborChannel::itsOriCompType [protected] |
determines the type of computation used to compute orientation
see OrientComputeTypes.H for possible values.
Definition at line 75 of file GaborChannel.H.
Referenced by readFrom(), and writeTo().