
Measure salience at human eye positions. More...
#include <Neuro/SimulationViewerEyeHand.H>


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< SpatialMetrics > | itsMetrics |
| 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< LevelSpec > | itsLevelSpec |
| our levelspec | |
| OModelParam< std::string > | itsOutFname |
| Our results file. | |
| OModelParam< std::string > | itsPriorRandomDistro |
| 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< uint > | itsSMhistoryQlen |
| 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::string > | itsOutFields |
| std::vector< GEyeFormat > | itsEyeStyles |
| std::vector< GHandFormat > | itsHandStyles |
Measure salience at human eye positions.
Definition at line 60 of file SimulationViewerEyeHand.H.
| SimulationViewerEyeHand::SimulationViewerEyeHand | ( | OptionManager & | mgr, | |
| const std::string & | descrName = "EyeHand Simulation Viewer", |
|||
| const std::string & | tagName = "SimulationViewerEyeHand" | |||
| ) |
Constructor. See ModelComponent.H.
Definition at line 77 of file SimulationViewerEyeHand.C.
References ModelComponent::addSubComponent(), ModelComponent::getManager(), itsMetrics, OPT_ShapeEstimatorMode, and OptionManager::setOptionValString().
| SimulationViewerEyeHand::~SimulationViewerEyeHand | ( | ) | [virtual] |
Destructor.
Definition at line 130 of file SimulationViewerEyeHand.C.
| 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] |
Get the attention/eye/head trajectory image.
Definition at line 930 of file SimulationViewerEyeHand.C.
References SimEventQueue::check(), composite(), concatX(), concatY(), decX(), decY(), Image< T >::getDims(), SimulationViewer::getMap(), ImageCacheMinMax< T >::getMax(), OModelParam< T >::getVal(), Image< T >::getWidth(), Dims::h(), Image< T >::initialized(), SimulationViewer::itsDisplayInterp, itsMaxCacheSize, itsMaxComboWidth, itsSaveTraj, lowPass3x(), lowPass3y(), Image< T >::resize(), SEQ_ANY, toRGB(), and Dims::w().
Referenced by save1().
| 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] |
get started
Reimplemented from SimModule.
Definition at line 136 of file SimulationViewerEyeHand.C.
References OModelParam< T >::getVal(), Point2D< T >::i, itsDelayCacheSize, itsMaxCacheSize, itsOutFname, itsPriorRandomDistro, itsSMhistoryQlen, and ImageCache< T >::setMaxSize().
| void SimulationViewerEyeHand::stop1 | ( | ) | [protected, virtual] |
get stopped
Reimplemented from ModelComponent.
Definition at line 179 of file SimulationViewerEyeHand.C.
OModelParam<int> SimulationViewerEyeHand::itsDelayCacheSize [protected] |
size of our delay cache
Definition at line 95 of file SimulationViewerEyeHand.H.
Referenced by start1().
OModelParam<bool> SimulationViewerEyeHand::itsDisplayFOA [protected] |
display saccade targets?
Definition at line 102 of file SimulationViewerEyeHand.H.
OModelParam<bool> SimulationViewerEyeHand::itsDisplayHand [protected] |
display Hand position
Definition at line 113 of file SimulationViewerEyeHand.H.
OModelParam<bool> SimulationViewerEyeHand::itsDisplayPatch [protected] |
display eye position
Definition at line 99 of file SimulationViewerEyeHand.H.
OModelParam<bool> SimulationViewerEyeHand::itsDisplaySacNum [protected] |
display saccade number?
Definition at line 98 of file SimulationViewerEyeHand.H.
OModelParam<bool> SimulationViewerEyeHand::itsEraseMarker [protected] |
erase marker at each frame
Definition at line 101 of file SimulationViewerEyeHand.H.
OModelParam<bool> SimulationViewerEyeHand::itsLabelEyePatch [protected] |
label eyetraces on video
Definition at line 108 of file SimulationViewerEyeHand.H.
OModelParam<LevelSpec> SimulationViewerEyeHand::itsLevelSpec [protected] |
our levelspec
Definition at line 103 of file SimulationViewerEyeHand.H.
OModelParam<int> SimulationViewerEyeHand::itsMaxCacheSize [protected] |
size of our max cache
Definition at line 96 of file SimulationViewerEyeHand.H.
OModelParam<int> SimulationViewerEyeHand::itsMaxComboWidth [protected] |
max width of getTraj()
Definition at line 110 of file SimulationViewerEyeHand.H.
Referenced by getTraj().
nub::ref<SpatialMetrics> SimulationViewerEyeHand::itsMetrics [protected] |
metrics that depend on input size
Definition at line 91 of file SimulationViewerEyeHand.H.
Referenced by SimulationViewerEyeHand().
OModelParam<int> SimulationViewerEyeHand::itsNumRandomSamples [protected] |
number of random samples
Definition at line 109 of file SimulationViewerEyeHand.H.
OModelParam<std::string> SimulationViewerEyeHand::itsOutFname [protected] |
OModelParam<int> SimulationViewerEyeHand::itsPatchSize [protected] |
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().
OModelParam<bool> SimulationViewerEyeHand::itsSampleAtStart [protected] |
take samples at start or end of sac
Definition at line 97 of file SimulationViewerEyeHand.H.
OModelParam<bool> SimulationViewerEyeHand::itsSaveCombo [protected] |
OModelParam<bool> SimulationViewerEyeHand::itsSaveTraj [protected] |
save trajectory?
Definition at line 94 of file SimulationViewerEyeHand.H.
OModelParam<uint> SimulationViewerEyeHand::itsSMhistoryQlen [protected] |
queue len for Sm history
Definition at line 111 of file SimulationViewerEyeHand.H.
Referenced by start1().
OModelParam<bool> SimulationViewerEyeHand::itsUseDiagColor [protected] |
use saccade during blink?
Definition at line 107 of file SimulationViewerEyeHand.H.
OModelParam<bool> SimulationViewerEyeHand::itsUseSaccadeInBlink [protected] |
use saccade during blink?
Definition at line 106 of file SimulationViewerEyeHand.H.
1.6.3