


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.
Definition at line 63 of file SpatialMetrics.C. |
|
|
Virtual destructor for proper destruction of derived classes.
Definition at line 76 of file SpatialMetrics.C. |
|
||||||||||||||||
|
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. |
|
|
Get the radius of the focus of attention.
Definition at line 83 of file SpatialMetrics.C. References OModelParam< T >::getVal(). |
|
|
Get the radius of the fovea.
Definition at line 80 of file SpatialMetrics.C. References OModelParam< T >::getVal(). |
|
|
Get our input frame dims.
Definition at line 176 of file SpatialMetrics.C. References OModelParam< T >::getVal(). |
|
|
Get our current pixels-per-degree value.
Definition at line 86 of file SpatialMetrics.C. References OModelParam< T >::getVal(). |
|
||||||||||||||||
|
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(). |
|
||||||||||||||||
|
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. |
|
|
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(). |
|
|
Set the fovea radius.
Definition at line 136 of file SpatialMetrics.C. References convertToString(), ModelComponent::getManager(), OPT_FoveaRadius, and OptionManager::setOptionValString(). |
1.4.4