#include <TrackingWindow.hh>
Definition at line 47 of file TrackingWindow.hh.
Public Member Functions | |
TrackingWindow (int window_id, int theta_start, int theta_end, int theta_max, int freeze_frame_bound) | |
Constructor. | |
virtual | ~TrackingWindow () |
int | get_id () |
Returns window id. | |
void | change_id (int new_id) |
Assign a new window id. | |
void | write_window_to_table (char *degree_table) |
Writes a window on the table. | |
bool | update_window_bounds (int new_theta_start, int new_theta_end) |
Sets the new bounds and length. | |
Private Attributes | |
int | _window_id |
int | _theta_start |
int | _theta_end |
int | _theta_max |
int | _window_length |
int | _freeze_frame_remaining |
Counts the remainig frames before removing the window id. | |
const int | _freeze_frame_bound |
Number of frames to freeze before removing the window. |
TrackingWindow::TrackingWindow | ( | int | window_id, | |
int | theta_start, | |||
int | theta_end, | |||
int | theta_max, | |||
int | freeze_frame_bound | |||
) |
window_id | Window id to differentiate between the other "windows" tracked. | |
theta_start | Start angle | |
theta_end | End angle. | |
theta_max | Upper bound of theta. | |
freeze_frame_bound | Number of frames the window keeps being tracked. If it's a false-positive it will be removed after freeze_frame_bound frames. |
Definition at line 30 of file TrackingWindow.cpp.
References _freeze_frame_bound, _freeze_frame_remaining, _theta_end, _theta_max, _theta_start, and _window_length.
TrackingWindow::~TrackingWindow | ( | ) | [virtual] |
Definition at line 49 of file TrackingWindow.cpp.
void TrackingWindow::change_id | ( | int | new_id | ) |
new_id | The new id |
Definition at line 107 of file TrackingWindow.cpp.
References _window_id.
Referenced by OmniTrackingTable< ConverterT, AngleT, ImageT, PointT >::remove_tracking_window().
Here is the caller graph for this function:
int TrackingWindow::get_id | ( | ) |
bool TrackingWindow::update_window_bounds | ( | int | new_theta_start, | |
int | new_theta_end | |||
) |
new_theta_start | New theta start | |
new_theta_end | New theta end |
Definition at line 77 of file TrackingWindow.cpp.
References _freeze_frame_bound, _freeze_frame_remaining, _theta_end, _theta_max, _theta_start, and _window_length.
void TrackingWindow::write_window_to_table | ( | char * | degree_table | ) |
Usually this func is called after OmniTracking::test_tracking_window_availability which tests the availability of free space in the table itself.
degree_table | Degree Table. The effective array of chars which takes take of writing the symbols is proprietary of OmniTrackingTable class. |
Definition at line 65 of file TrackingWindow.cpp.
References _theta_max, _theta_start, _window_length, and VALUE_TRACKED.
Referenced by OmniTrackingTable< ConverterT, AngleT, ImageT, PointT >::add_tracking_window().
Here is the caller graph for this function:
const int TrackingWindow::_freeze_frame_bound [private] |
If the bounds are updated the _freeze_frame_remaining is restored to its initial value
Definition at line 108 of file TrackingWindow.hh.
Referenced by TrackingWindow(), and update_window_bounds().
int TrackingWindow::_freeze_frame_remaining [private] |
Definition at line 102 of file TrackingWindow.hh.
Referenced by TrackingWindow(), and update_window_bounds().
int TrackingWindow::_theta_end [private] |
Definition at line 97 of file TrackingWindow.hh.
Referenced by TrackingWindow(), and update_window_bounds().
int TrackingWindow::_theta_max [private] |
Definition at line 98 of file TrackingWindow.hh.
Referenced by TrackingWindow(), update_window_bounds(), and write_window_to_table().
int TrackingWindow::_theta_start [private] |
Definition at line 96 of file TrackingWindow.hh.
Referenced by TrackingWindow(), update_window_bounds(), and write_window_to_table().
int TrackingWindow::_window_id [private] |
int TrackingWindow::_window_length [private] |
Definition at line 99 of file TrackingWindow.hh.
Referenced by TrackingWindow(), update_window_bounds(), and write_window_to_table().