SpatialMetrics Class Reference

Inheritance diagram for SpatialMetrics:
Inheritance graph
[legend]
Collaboration diagram for SpatialMetrics:
Collaboration graph
[legend]

List of all members.

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.
double getPPDX () const
 Get our current pixels-per-degree value.
double getPPDY () const
 Get our current pixels-per-degree value.
Dims getInputFrameDims () const
 Get our input frame dims.

Detailed Description

Definition at line 47 of file SpatialMetrics.H.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 56 of file SpatialMetrics.C.

SpatialMetrics::~SpatialMetrics (  )  [virtual]

Virtual destructor for proper destruction of derived classes.

Definition at line 69 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 166 of file SpatialMetrics.C.

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

int SpatialMetrics::getFOAradius (  )  const

Get the radius of the focus of attention.

Definition at line 77 of file SpatialMetrics.C.

References OModelParam< T >::getVal().

int SpatialMetrics::getFoveaRadius (  )  const

Get the radius of the fovea.

Definition at line 73 of file SpatialMetrics.C.

References OModelParam< T >::getVal().

Dims SpatialMetrics::getInputFrameDims (  )  const

Get our input frame dims.

Definition at line 181 of file SpatialMetrics.C.

References OModelParam< T >::getVal().

double SpatialMetrics::getPPD (  )  const

Get our current pixels-per-degree value.

Definition at line 81 of file SpatialMetrics.C.

References OModelParam< T >::getVal().

double SpatialMetrics::getPPDX (  )  const

Get our current pixels-per-degree value.

Definition at line 85 of file SpatialMetrics.C.

References OModelParam< T >::getVal().

double SpatialMetrics::getPPDY (  )  const

Get our current pixels-per-degree value.

Definition at line 89 of file SpatialMetrics.C.

References OModelParam< T >::getVal().

void SpatialMetrics::paramChanged ( ModelParamBase param,
const bool  valueChanged,
ParamClient::ChangeStatus status 
) [virtual]
void SpatialMetrics::pix2deg ( const Point2D< int > &  pixloc,
double &  xdeg,
double &  ydeg 
) const

Helper function converting from pixels to degrees.

Definition at line 151 of file SpatialMetrics.C.

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

void SpatialMetrics::setFOAradius ( int  val  ) 

Set the radius of the focus of attention.

Definition at line 145 of file SpatialMetrics.C.

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

void SpatialMetrics::setFoveaRadius ( int  val  ) 

Set the fovea radius.

Definition at line 139 of file SpatialMetrics.C.

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


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:49 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3