Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SpatialMetrics Class Reference

Inheritance diagram for SpatialMetrics:

Inheritance graph
[legend]
Collaboration diagram for SpatialMetrics:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 46 of file SpatialMetrics.H.

Public Member Functions

 SpatialMetrics (OptionManager &mgr, const std::string &descrName="Spatial Metrics", const std::string &tagName="SpatialMetrics")
 Constructor.
virtual ~SpatialMetrics ()
 Virtual destructor for proper destruction of derived classes.
virtual void paramChanged (ModelParamBase *param, const bool valueChanged, ParamClient::ChangeStatus *status)
 Override to respond to changes in OPT_InputFrameDims.
int getFoveaRadius () const
 Get the radius of the fovea.
int getFOAradius () const
 Get the radius of the focus of attention.
void setFoveaRadius (int val)
 Set the fovea radius.
void setFOAradius (int val)
 Set the radius of the focus of attention.
void pix2deg (const Point2D< int > &pixloc, double &xdeg, double &ydeg) const
 Helper function converting from pixels to degrees.
void deg2pix (const double xdeg, const double ydeg, Point2D< int > &pixloc) const
 Helper function converting from degrees to pixels.
double getPPD () const
 Get our current pixels-per-degree value.
Dims getInputFrameDims () const
 Get our input frame dims.


Constructor & Destructor Documentation

SpatialMetrics::SpatialMetrics OptionManager mgr,
const std::string descrName = "Spatial Metrics",
const std::string tagName = "SpatialMetrics"
 

Constructor.

Definition at line 63 of file SpatialMetrics.C.

SpatialMetrics::~SpatialMetrics  )  [virtual]
 

Virtual destructor for proper destruction of derived classes.

Definition at line 76 of file SpatialMetrics.C.


Member Function Documentation

void SpatialMetrics::deg2pix const double  xdeg,
const double  ydeg,
Point2D< int > &  pixloc
const
 

Helper function converting from degrees to pixels.

Definition at line 162 of file SpatialMetrics.C.

References OModelParam< T >::getVal(), Dims::h(), height, Point2D< T >::i, Point2D< T >::j, Dims::w(), and width.

int SpatialMetrics::getFOAradius  )  const
 

Get the radius of the focus of attention.

Definition at line 83 of file SpatialMetrics.C.

References OModelParam< T >::getVal().

int SpatialMetrics::getFoveaRadius  )  const
 

Get the radius of the fovea.

Definition at line 80 of file SpatialMetrics.C.

References OModelParam< T >::getVal().

Dims SpatialMetrics::getInputFrameDims  )  const
 

Get our input frame dims.

Definition at line 176 of file SpatialMetrics.C.

References OModelParam< T >::getVal().

double SpatialMetrics::getPPD  )  const
 

Get our current pixels-per-degree value.

Definition at line 86 of file SpatialMetrics.C.

References OModelParam< T >::getVal().

void SpatialMetrics::paramChanged ModelParamBase param,
const bool  valueChanged,
ParamClient::ChangeStatus status
[virtual]
 

Override to respond to changes in OPT_InputFrameDims.

Reimplemented from ModelComponent.

Definition at line 90 of file SpatialMetrics.C.

References convertFromString, convertToString(), foveaRadius, ModelComponent::getManager(), OptionManager::getOptionValString(), OModelParam< T >::getVal(), Dims::h(), Dims::isNonEmpty(), LINFO, mgr, rutz::min(), OPT_FOAradius, OPT_FoveaRadius, ModelComponent::paramChanged(), OptionManager::setOptionValString(), sformat(), textLog(), and Dims::w().

void SpatialMetrics::pix2deg const Point2D< int > &  pixloc,
double &  xdeg,
double &  ydeg
const
 

Helper function converting from pixels to degrees.

Definition at line 148 of file SpatialMetrics.C.

References OModelParam< T >::getVal(), Dims::h(), height, Point2D< T >::i, Point2D< T >::j, Dims::w(), and width.

void SpatialMetrics::setFOAradius int  val  ) 
 

Set the radius of the focus of attention.

Definition at line 142 of file SpatialMetrics.C.

References convertToString(), ModelComponent::getManager(), OPT_FOAradius, and OptionManager::setOptionValString().

void SpatialMetrics::setFoveaRadius int  val  ) 
 

Set the fovea radius.

Definition at line 136 of file SpatialMetrics.C.

References convertToString(), ModelComponent::getManager(), OPT_FoveaRadius, and OptionManager::setOptionValString().


The documentation for this class was generated from the following files:
Generated on Sun Nov 22 13:46:36 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4