Public Member Functions | |
uint | findHitRegion (const Point2D< int > pt, uint frameNum) |
uint | findHitRegion (const Point2D< int > pt) |
std::string | listAllRegionsHit (const Point2D< int > pt, uint frameNum) |
std::string | listAllRegionsHit (const Point2D< int > pt) |
double | rankForeground (Object obj) |
Constructors and destructors | |
SimulationViewerEyeRegion (OptionManager &mgr, const std::string &descrName="EyeRegion Simulation Viewer", const std::string &tagName="SimulationViewerEyeRegion") | |
Constructor. See ModelComponent.H. | |
virtual | ~SimulationViewerEyeRegion () |
Destructor. | |
Protected Member Functions | |
Image< PixRGB< byte > > | getTraj (SimEventQueue &q) |
Callback for every clock tick. | |
void | extraSampleProcessing (const rutz::shared_ptr< EyeData > data) |
void | writeROIOutput (Point2D< int > pos) |
void | drawEye (const rutz::shared_ptr< EyeData > data, const uint trackerNum) |
void | drawFOA (const Point2D< int > target, const uint trackerNum) |
void | drawRegions (Object obj) |
void | drawRegions () |
Object | getSceneObj (uint objID, uint FrameNum) |
Object | getSceneObj (uint objID) |
std::string | getObjName (uint objID) |
std::string | craftSVEMOutput (const std::string tfn, const rutz::shared_ptr< EyeData > data) |
std::string | craftRegionOutput (const rutz::shared_ptr< EyeData > data) |
void | start1 () |
get started | |
void | stop1 () |
get stopped | |
Protected Attributes | |
OModelParam< std::string > | itsRegionOutFname |
Our results file. | |
OModelParam< std::string > | itsXMLFname |
OModelParam< std::string > | itsSelectedObjects |
OModelParam< std::string > | itsObjectDrawMode |
OModelParam< std::string > | itsHighlightMode |
OModelParam< bool > | itsPrependHeader |
NModelParam< uint > | itsLineThickness |
NModelParam< double > | itsHitTransparency |
NModelParam< bool > | itsRandomColoring |
rutz::shared_ptr< TestImages > | itsObjectsInfo |
std::ofstream * | itsRegionOutFile |
Image< PixRGB< byte > > | itsRegions |
Image< PixRGB< byte > > | itsTargetsMask |
uint | itsNumObjects |
uint | itsCurrRegionID |
rutz::shared_ptr< EyeData > | itsObjectEntry |
SimTime | itsObjectOnset |
uint | itsObjectFrameOnset |
std::vector< PixRGB< byte > > | itsRandColors |
std::vector< std::string > | itsObjectsNames |
bool | itsRegHeaderWritten |
Definition at line 57 of file SimulationViewerEyeRegion.H.
SimulationViewerEyeRegion::SimulationViewerEyeRegion | ( | OptionManager & | mgr, | |
const std::string & | descrName = "EyeRegion Simulation Viewer" , |
|||
const std::string & | tagName = "SimulationViewerEyeRegion" | |||
) |
Constructor. See ModelComponent.H.
Definition at line 105 of file SimulationViewerEyeRegion.C.
SimulationViewerEyeRegion::~SimulationViewerEyeRegion | ( | ) | [virtual] |
Destructor.
Definition at line 127 of file SimulationViewerEyeRegion.C.
Image< PixRGB< byte > > SimulationViewerEyeRegion::getTraj | ( | SimEventQueue & | q | ) | [protected, virtual] |
Callback for every clock tick.
Callback for every time we should save our outputs Save our various results Get the attention/eye/head trajectory image
Reimplemented from SimulationViewerEyeMvt.
Definition at line 677 of file SimulationViewerEyeRegion.C.
References alphaBlend(), SimEventQueue::check(), composite(), concatX(), concatY(), decX(), decY(), Image< T >::getDims(), SimulationViewer::getMap(), ImageCacheMinMax< T >::getMax(), OModelParam< T >::getVal(), NModelParam< T >::getVal(), Image< T >::getWidth(), Dims::h(), Image< T >::initialized(), SimulationViewer::itsDisplayInterp, SimulationViewerEyeMvt::itsMaxCacheSize, SimulationViewerEyeMvt::itsMaxComboWidth, SimulationViewerEyeMvt::itsSaveTraj, lowPass3x(), lowPass3y(), Image< T >::resize(), SEQ_ANY, toRGB(), and Dims::w().
void SimulationViewerEyeRegion::start1 | ( | ) | [protected, virtual] |
get started
Reimplemented from SimulationViewerEyeMvt.
Definition at line 133 of file SimulationViewerEyeRegion.C.
References OModelParam< T >::getVal(), NModelParam< T >::getVal(), SimulationViewerEyeMvt::itsDisplayPatch, itsRegionOutFname, randomUpToIncluding(), and rutz::shared_ptr< T >::reset().
void SimulationViewerEyeRegion::stop1 | ( | ) | [protected, virtual] |
get stopped
Reimplemented from SimulationViewerEyeMvt.
Definition at line 211 of file SimulationViewerEyeRegion.C.
Our results file.
Definition at line 114 of file SimulationViewerEyeRegion.H.
Referenced by start1().