SimulationViewerHand Class Reference

Measure salience at human eye positions. More...

#include <Neuro/SimulationViewerHand.H>

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

List of all members.

Classes

struct  GHandFormat

Public Member Functions

Constructors and destructors

 SimulationViewerHand (OptionManager &mgr, const std::string &descrName="Hand Simulation Viewer", const std::string &tagName="SimulationViewerHand")
 Constructor. See ModelComponent.H.
virtual ~SimulationViewerHand ()
 Destructor.

Protected Member Functions

 SIMCALLBACK_DECLARE (SimulationViewerHand, SimEventClockTick)
 Callback for every clock tick.
 SIMCALLBACK_DECLARE (SimulationViewerHand, SimEventSaveOutput)
 Callback for every time we should save our outputs.
void save1 (const ModelComponentSaveInfo &sinfo)
 Save our various results.
virtual Image< PixRGB< byte > > getTraj (SimEventQueue &q)
 Get the attention/eye/head trajectory image.
virtual void start1 ()
 get started
virtual void stop1 ()
 get stopped
virtual void drawHand (const rutz::shared_ptr< HandData > data, const uint trackerNum)
virtual void extraSampleProcessing (const rutz::shared_ptr< HandData >)

Protected Attributes

nub::ref< SpatialMetricsitsMetrics
 metrics that depend on input size
OModelParam< bool > itsSaveTraj
 save trajectory?
OModelParam< bool > itsSaveCombo
 save combo?
OModelParam< bool > itsDisplayHand
 display Hand position
OModelParam< int > itsPatchSize
 size of marker at eye position
OModelParam< bool > itsEraseMarker
 erase marker at each frame
OModelParam< int > itsMaxComboWidth
 max width of getTraj()
Image< PixRGB< byte > > itsDrawings
SimTime itsCurrTime
uint itsFrameNumber
bool itsHeaderCrafted
std::vector< std::stringitsOutFields
std::vector< GHandFormatitsHandStyles

Detailed Description

Measure salience at human eye positions.

Definition at line 60 of file SimulationViewerHand.H.


Constructor & Destructor Documentation

SimulationViewerHand::SimulationViewerHand ( OptionManager mgr,
const std::string descrName = "Hand Simulation Viewer",
const std::string tagName = "SimulationViewerHand" 
)
SimulationViewerHand::~SimulationViewerHand (  )  [virtual]

Destructor.

Definition at line 101 of file SimulationViewerHand.C.


Member Function Documentation

void SimulationViewerHand::drawHand ( const rutz::shared_ptr< HandData data,
const uint  trackerNum 
) [protected, virtual]

Assuming grid [1,1]'s coord is (8,8) --> [ 0, 0] is ( 0, 0) --> [80,60] is (640,480) We only want the X to be in between grid [2,59] to [79,59] and Y in [1,1] to [1,58]. We set those instead of [1,59] to prevent collision incase both meet eachother (rawX=0/255, rawY=0/255) |----------------|-------[]------| X1 XC X_ X2

Definition at line 186 of file SimulationViewerHand.C.

References drawPatchBB(), SimpleFont::FIXED(), Image< T >::getDims(), Dims::h(), Point2D< T >::i, sformat(), Dims::w(), and writeText().

Image< PixRGB< byte > > SimulationViewerHand::getTraj ( SimEventQueue q  )  [protected, virtual]
void SimulationViewerHand::save1 ( const ModelComponentSaveInfo sinfo  )  [protected, virtual]

Save our various results.

Reimplemented from ModelComponent.

Definition at line 332 of file SimulationViewerHand.C.

References getTraj(), OModelParam< T >::getVal(), itsSaveCombo, itsSaveTraj, and SRC_POS.

SimulationViewerHand::SIMCALLBACK_DECLARE ( SimulationViewerHand  ,
SimEventSaveOutput   
) [protected]

Callback for every time we should save our outputs.

SimulationViewerHand::SIMCALLBACK_DECLARE ( SimulationViewerHand  ,
SimEventClockTick   
) [protected]

Callback for every clock tick.

void SimulationViewerHand::start1 (  )  [protected, virtual]

get started

Reimplemented from SimModule.

Definition at line 107 of file SimulationViewerHand.C.

void SimulationViewerHand::stop1 (  )  [protected, virtual]

get stopped

Reimplemented from ModelComponent.

Definition at line 115 of file SimulationViewerHand.C.


Member Data Documentation

display Hand position

Definition at line 95 of file SimulationViewerHand.H.

erase marker at each frame

Definition at line 97 of file SimulationViewerHand.H.

max width of getTraj()

Definition at line 98 of file SimulationViewerHand.H.

Referenced by getTraj().

metrics that depend on input size

Definition at line 91 of file SimulationViewerHand.H.

Referenced by SimulationViewerHand().

size of marker at eye position

Definition at line 96 of file SimulationViewerHand.H.

save combo?

Definition at line 94 of file SimulationViewerHand.H.

Referenced by getTraj(), and save1().

save trajectory?

Definition at line 93 of file SimulationViewerHand.H.

Referenced by getTraj(), and save1().


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