Token Class Reference

public class that contains information for a visual token for tracking More...

#include <MBARI/VisualEvent.H>

Collaboration diagram for Token:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Token ()
 default constructor
 Token (float x, float y, uint frame, BitObject bo)
 constructor that fills the members with initial values
 Token (BitObject bo, uint frame)
 constructor with the location being the centroid of the BitObject
 Token (std::istream &is)
 read the Token from the input stream is
void writeToStream (std::ostream &os) const
 write the entire Token to the output stream os
void readFromStream (std::istream &is)
 read the Token from the input stream is
void writePosition (std::ostream &os) const
 write the Token's position to the output streeam os

Public Attributes

BitObject bitObject
 the BitObject that holds info about the shape of this Token
Vector2D location
 the x and y coordinates of the token in the frame
Vector2D prediction
 the expected location for this token
StraightLine2D line
 the straight line on which this token is moving
float angle
 the angle between line and the connection to the FOE
uint frame_nr
 the frame number at which the token occurred

Detailed Description

public class that contains information for a visual token for tracking

Definition at line 59 of file VisualEvent.H.


Constructor & Destructor Documentation

Token::Token (  ) 

default constructor

Definition at line 58 of file VisualEvent.C.

Token::Token ( float  x,
float  y,
uint  frame,
BitObject  bo 
)

constructor that fills the members with initial values

Definition at line 68 of file VisualEvent.C.

Token::Token ( BitObject  bo,
uint  frame 
)

constructor with the location being the centroid of the BitObject

Definition at line 78 of file VisualEvent.C.

Token::Token ( std::istream &  is  ) 

read the Token from the input stream is

Definition at line 88 of file VisualEvent.C.

References readFromStream().


Member Function Documentation

void Token::readFromStream ( std::istream &  is  ) 

read the Token from the input stream is

Definition at line 106 of file VisualEvent.C.

References angle, bitObject, frame_nr, line, location, prediction, Vector2D::readFromStream(), and StraightLine2D::readFromStream().

Referenced by Token().

void Token::writePosition ( std::ostream &  os  )  const

write the Token's position to the output streeam os

Definition at line 117 of file VisualEvent.C.

References location, and Vector2D::writeToStream().

void Token::writeToStream ( std::ostream &  os  )  const

write the entire Token to the output stream os

Definition at line 94 of file VisualEvent.C.

References angle, bitObject, frame_nr, line, location, prediction, Vector2D::writeToStream(), StraightLine2D::writeToStream(), and BitObject::writeToStream().


Member Data Documentation

float Token::angle

the angle between line and the connection to the FOE

Definition at line 88 of file VisualEvent.H.

Referenced by VisualEvent::getPropertyVector(), readFromStream(), and writeToStream().

the frame number at which the token occurred

Definition at line 91 of file VisualEvent.H.

Referenced by VisualEvent::assign(), VisualEvent::isTokenOk(), readFromStream(), and writeToStream().

the straight line on which this token is moving

Definition at line 85 of file VisualEvent.H.

Referenced by readFromStream(), and writeToStream().

the x and y coordinates of the token in the frame

Definition at line 79 of file VisualEvent.H.

Referenced by VisualEvent::assign(), VisualEventSet::drawTokens(), VisualEvent::getCost(), readFromStream(), VisualEvent::VisualEvent(), writePosition(), and writeToStream().

the expected location for this token

Definition at line 82 of file VisualEvent.H.

Referenced by VisualEventSet::drawTokens(), readFromStream(), and writeToStream().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:26:18 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3