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


Classes | |
| struct | GEyeFormat | 
Public Member Functions | |
Constructors and destructors  | |
| SimulationViewerEyeMvt (OptionManager &mgr, const std::string &descrName="EyeMvt Simulation Viewer", const std::string &tagName="SimulationViewerEyeMvt") | |
| Constructor. See ModelComponent.H.   | |
| virtual | ~SimulationViewerEyeMvt () | 
| Destructor.   | |
Protected Member Functions | |
| SIMCALLBACK_DECLARE (SimulationViewerEyeMvt, SimEventClockTick) | |
| Callback for every clock tick.   | |
| SIMCALLBACK_DECLARE (SimulationViewerEyeMvt, 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 | 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 >) | 
| 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< bool > | itsSaveMegaCombo | 
| save mega combo?   | |
| 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< bool > | itsWriteFrameNum | 
| write framenumber   | |
| OModelParam< int > | itsNumRandomSamples | 
| number of random samples   | |
| OModelParam< int > | itsMaxComboWidth | 
| max width of getTraj()   | |
| OModelParam< uint > | itsSMhistoryQlen | 
| queue len for Sm history   | |
| 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 | 
Measure salience at human eye positions.
Definition at line 60 of file SimulationViewerEyeMvt.H.
| SimulationViewerEyeMvt::SimulationViewerEyeMvt | ( | OptionManager & | mgr, | |
| const std::string & |  descrName = "EyeMvt Simulation Viewer",  | 
        |||
| const std::string & |  tagName = "SimulationViewerEyeMvt" | |||
| ) | 
Constructor. See ModelComponent.H.
Definition at line 75 of file SimulationViewerEyeMvt.C.
References ModelComponent::addSubComponent(), ModelComponent::getManager(), itsMetrics, OPT_ShapeEstimatorMode, and OptionManager::setOptionValString().
| SimulationViewerEyeMvt::~SimulationViewerEyeMvt | ( | ) |  [virtual] | 
        
Destructor.
Definition at line 125 of file SimulationViewerEyeMvt.C.
| Image< PixRGB< byte > > SimulationViewerEyeMvt::getTraj | ( | SimEventQueue & | q | ) |  [protected, virtual] | 
        
Get the attention/eye/head trajectory image.
Reimplemented in SimulationViewerEyeRegion.
Definition at line 697 of file SimulationViewerEyeMvt.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 SimulationViewerEyeMvt::save1 | ( | const ModelComponentSaveInfo & | sinfo | ) |  [protected, virtual] | 
        
Save our various results.
Reimplemented from ModelComponent.
Definition at line 766 of file SimulationViewerEyeMvt.C.
References getTraj(), OModelParam< T >::getVal(), itsSaveMegaCombo, itsSaveTraj, and SRC_POS.
| SimulationViewerEyeMvt::SIMCALLBACK_DECLARE | ( | SimulationViewerEyeMvt | , | |
| SimEventSaveOutput | ||||
| ) |  [protected] | 
        
Callback for every time we should save our outputs.
| SimulationViewerEyeMvt::SIMCALLBACK_DECLARE | ( | SimulationViewerEyeMvt | , | |
| SimEventClockTick | ||||
| ) |  [protected] | 
        
Callback for every clock tick.
| void SimulationViewerEyeMvt::start1 | ( | ) |  [protected, virtual] | 
        
get started
Reimplemented from SimModule.
Reimplemented in SimulationViewerEyeRegion.
Definition at line 131 of file SimulationViewerEyeMvt.C.
References OModelParam< T >::getVal(), itsDelayCacheSize, itsMaxCacheSize, itsOutFname, itsPriorRandomDistro, itsSMhistoryQlen, and ImageCache< T >::setMaxSize().
| void SimulationViewerEyeMvt::stop1 | ( | ) |  [protected, virtual] | 
        
get stopped
Reimplemented from ModelComponent.
Reimplemented in SimulationViewerEyeRegion.
Definition at line 181 of file SimulationViewerEyeMvt.C.
OModelParam<int> SimulationViewerEyeMvt::itsDelayCacheSize [protected] | 
        
size of our delay cache
Definition at line 95 of file SimulationViewerEyeMvt.H.
Referenced by start1().
OModelParam<bool> SimulationViewerEyeMvt::itsDisplayFOA [protected] | 
        
display saccade targets?
Definition at line 102 of file SimulationViewerEyeMvt.H.
OModelParam<bool> SimulationViewerEyeMvt::itsDisplayPatch [protected] | 
        
display eye position
Definition at line 99 of file SimulationViewerEyeMvt.H.
Referenced by SimulationViewerEyeRegion::start1().
OModelParam<bool> SimulationViewerEyeMvt::itsDisplaySacNum [protected] | 
        
display saccade number?
Definition at line 98 of file SimulationViewerEyeMvt.H.
OModelParam<bool> SimulationViewerEyeMvt::itsEraseMarker [protected] | 
        
erase marker at each frame
Definition at line 101 of file SimulationViewerEyeMvt.H.
OModelParam<bool> SimulationViewerEyeMvt::itsLabelEyePatch [protected] | 
        
label eyetraces on video
Definition at line 108 of file SimulationViewerEyeMvt.H.
OModelParam<LevelSpec> SimulationViewerEyeMvt::itsLevelSpec [protected] | 
        
our levelspec
Definition at line 103 of file SimulationViewerEyeMvt.H.
OModelParam<int> SimulationViewerEyeMvt::itsMaxCacheSize [protected] | 
        
size of our max cache
Definition at line 96 of file SimulationViewerEyeMvt.H.
Referenced by SimulationViewerEyeRegion::getTraj(), getTraj(), and start1().
OModelParam<int> SimulationViewerEyeMvt::itsMaxComboWidth [protected] | 
        
max width of getTraj()
Definition at line 111 of file SimulationViewerEyeMvt.H.
Referenced by SimulationViewerEyeRegion::getTraj(), and getTraj().
nub::ref<SpatialMetrics> SimulationViewerEyeMvt::itsMetrics [protected] | 
        
metrics that depend on input size
Definition at line 91 of file SimulationViewerEyeMvt.H.
Referenced by SimulationViewerEyeMvt().
OModelParam<int> SimulationViewerEyeMvt::itsNumRandomSamples [protected] | 
        
number of random samples
Definition at line 110 of file SimulationViewerEyeMvt.H.
OModelParam<std::string> SimulationViewerEyeMvt::itsOutFname [protected] | 
        
OModelParam<int> SimulationViewerEyeMvt::itsPatchSize [protected] | 
        
size of marker at eye position
Definition at line 100 of file SimulationViewerEyeMvt.H.
Uniform or from File.
Definition at line 105 of file SimulationViewerEyeMvt.H.
Referenced by start1().
OModelParam<bool> SimulationViewerEyeMvt::itsSampleAtStart [protected] | 
        
take samples at start or end of sac
Definition at line 97 of file SimulationViewerEyeMvt.H.
OModelParam<bool> SimulationViewerEyeMvt::itsSaveMegaCombo [protected] | 
        
OModelParam<bool> SimulationViewerEyeMvt::itsSaveTraj [protected] | 
        
save trajectory?
Definition at line 93 of file SimulationViewerEyeMvt.H.
Referenced by SimulationViewerEyeRegion::getTraj(), getTraj(), and save1().
OModelParam<uint> SimulationViewerEyeMvt::itsSMhistoryQlen [protected] | 
        
queue len for Sm history
Definition at line 112 of file SimulationViewerEyeMvt.H.
Referenced by start1().
OModelParam<bool> SimulationViewerEyeMvt::itsUseDiagColor [protected] | 
        
use saccade during blink?
Definition at line 107 of file SimulationViewerEyeMvt.H.
OModelParam<bool> SimulationViewerEyeMvt::itsUseSaccadeInBlink [protected] | 
        
use saccade during blink?
Definition at line 106 of file SimulationViewerEyeMvt.H.
OModelParam<bool> SimulationViewerEyeMvt::itsWriteFrameNum [protected] | 
        
write framenumber
Definition at line 109 of file SimulationViewerEyeMvt.H.
 1.6.3