SimulationViewerEyeHand Class Reference

Measure salience at human eye positions. More...

#include <Neuro/SimulationViewerEyeHand.H>

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

List of all members.

Classes

struct  GEyeFormat
struct  GHandFormat

Public Member Functions

Constructors and destructors

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

Protected Member Functions

 SIMCALLBACK_DECLARE (SimulationViewerEyeHand, SimEventClockTick)
 Callback for every clock tick.
 SIMCALLBACK_DECLARE (SimulationViewerEyeHand, 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 drawEye (const rutz::shared_ptr< EyeData > data, const uint trackerNum)
virtual void drawHand (const rutz::shared_ptr< HandData > data, const uint trackerNum)
virtual void drawFOA (const Point2D< int > target, const uint trackerNum)
virtual std::string craftSVEMOutput (const std::string TrackerNum, const rutz::shared_ptr< EyeData > data)
virtual void extraSampleProcessing (const rutz::shared_ptr< EyeData >)
virtual void extraSampleProcessing (const rutz::shared_ptr< HandData >)
std::string craftModelFreeOutput (const rutz::shared_ptr< EyeData > data)
std::string craftSMSamples (const rutz::shared_ptr< EyeData > data, Image< float > smap)
std::string craftSMHistory (const rutz::shared_ptr< EyeData > data, Image< float > smap)
void writeHeader ()
Point2D< int > rawToRet (Point2D< int > P) const

Protected Attributes

nub::ref< SpatialMetricsitsMetrics
 metrics that depend on input size
OModelParam< bool > itsSaveTraj
 save trajectory?
OModelParam< int > itsDelayCacheSize
 size of our delay cache
OModelParam< int > itsMaxCacheSize
 size of our max cache
OModelParam< bool > itsSampleAtStart
 take samples at start or end of sac
OModelParam< bool > itsDisplaySacNum
 display saccade number?
OModelParam< bool > itsDisplayPatch
 display eye position
OModelParam< int > itsPatchSize
 size of marker at eye position
OModelParam< bool > itsEraseMarker
 erase marker at each frame
OModelParam< bool > itsDisplayFOA
 display saccade targets?
OModelParam< LevelSpecitsLevelSpec
 our levelspec
OModelParam< std::stringitsOutFname
 Our results file.
OModelParam< std::stringitsPriorRandomDistro
 Uniform or from File.
OModelParam< bool > itsUseSaccadeInBlink
 use saccade during blink?
OModelParam< bool > itsUseDiagColor
 use saccade during blink?
OModelParam< bool > itsLabelEyePatch
 label eyetraces on video
OModelParam< int > itsNumRandomSamples
 number of random samples
OModelParam< int > itsMaxComboWidth
 max width of getTraj()
OModelParam< uintitsSMhistoryQlen
 queue len for Sm history
OModelParam< bool > itsDisplayHand
 display Hand position
OModelParam< bool > itsSaveCombo
 save combo?
ImageCacheMinMax< float > itsDelayCache
ImageCacheMinMax< float > itsMaxCache
Image< float > itsHeadSM
Image< PixRGB< byte > > itsDrawings
SimTime itsCurrTime
uint itsFrameNumber
bool itsHeaderCrafted
std::vector< std::stringitsOutFields
std::vector< GEyeFormatitsEyeStyles
std::vector< GHandFormatitsHandStyles

Detailed Description

Measure salience at human eye positions.

Definition at line 60 of file SimulationViewerEyeHand.H.


Constructor & Destructor Documentation

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

Destructor.

Definition at line 130 of file SimulationViewerEyeHand.C.


Member Function Documentation

void SimulationViewerEyeHand::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 447 of file SimulationViewerEyeHand.C.

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

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

Save our various results.

Reimplemented from ModelComponent.

Definition at line 998 of file SimulationViewerEyeHand.C.

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

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

Callback for every time we should save our outputs.

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

Callback for every clock tick.

void SimulationViewerEyeHand::start1 (  )  [protected, virtual]
void SimulationViewerEyeHand::stop1 (  )  [protected, virtual]

get stopped

Reimplemented from ModelComponent.

Definition at line 179 of file SimulationViewerEyeHand.C.


Member Data Documentation

size of our delay cache

Definition at line 95 of file SimulationViewerEyeHand.H.

Referenced by start1().

display saccade targets?

Definition at line 102 of file SimulationViewerEyeHand.H.

display Hand position

Definition at line 113 of file SimulationViewerEyeHand.H.

display eye position

Definition at line 99 of file SimulationViewerEyeHand.H.

display saccade number?

Definition at line 98 of file SimulationViewerEyeHand.H.

erase marker at each frame

Definition at line 101 of file SimulationViewerEyeHand.H.

label eyetraces on video

Definition at line 108 of file SimulationViewerEyeHand.H.

our levelspec

Definition at line 103 of file SimulationViewerEyeHand.H.

size of our max cache

Definition at line 96 of file SimulationViewerEyeHand.H.

Referenced by getTraj(), and start1().

max width of getTraj()

Definition at line 110 of file SimulationViewerEyeHand.H.

Referenced by getTraj().

metrics that depend on input size

Definition at line 91 of file SimulationViewerEyeHand.H.

Referenced by SimulationViewerEyeHand().

number of random samples

Definition at line 109 of file SimulationViewerEyeHand.H.

Our results file.

Definition at line 104 of file SimulationViewerEyeHand.H.

Referenced by start1().

size of marker at eye position

Definition at line 100 of file SimulationViewerEyeHand.H.

Uniform or from File.

Definition at line 105 of file SimulationViewerEyeHand.H.

Referenced by start1().

take samples at start or end of sac

Definition at line 97 of file SimulationViewerEyeHand.H.

save combo?

Definition at line 114 of file SimulationViewerEyeHand.H.

Referenced by save1().

save trajectory?

Definition at line 94 of file SimulationViewerEyeHand.H.

Referenced by getTraj(), and save1().

queue len for Sm history

Definition at line 111 of file SimulationViewerEyeHand.H.

Referenced by start1().

use saccade during blink?

Definition at line 107 of file SimulationViewerEyeHand.H.

use saccade during blink?

Definition at line 106 of file SimulationViewerEyeHand.H.


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