vvid_live_stereo_manager Class Reference

#include <vvid_live_stereo_manager.h>

Inheritance diagram for vvid_live_stereo_manager:

Inheritance graph
[legend]

List of all members.


Detailed Description

A manager for displaying live video frames and processing on the frames.

The cameras are assumed to be wrapped in the live_video_frame class. At startup the number of cameras is determined. A reduced resolution image of each camera is shown in an array at the right of the display. The top is camera 0 the bottom is camera N-1. The left pane is used to display results of processing on the set of cameras.

Definition at line 31 of file vvid_live_stereo_manager.h.


Public Types

typedef vgui_grid_tableau_data grid_data
typedef vcl_vector< itemcontainer
typedef container::iterator iterator
typedef container::const_iterator const_iterator

Public Member Functions

 vvid_live_stereo_manager ()
 ~vvid_live_stereo_manager ()
unsigned get_height () const
 properties of the video frames.
unsigned get_width () const
int get_N_views () const
 properties of the camera setup.
void set_camera_params ()
 control live video actions.
void setup_views ()
void start_live_video ()
void stop_live_video ()
void quit ()
bool get_current_rgb_image (int view_no, int pix_sample_interval, vil1_memory_image_of< vil1_rgb< unsigned char > > &im)
 access to the current frames.
bool get_current_mono_image (int view_no, int pix_sample_interval, vil1_memory_image_of< unsigned char > &im)
void set_process_rgb_image (vil1_memory_image_of< vil1_rgb< unsigned char > > &im)
 control of the process result window.
void set_process_mono_image (vil1_memory_image_of< unsigned char > &im)
vgui_windowget_window ()
 access to the window.
void set_window (vgui_window *win)
virtual bool handle (const vgui_event &)
 the virtual handle function.
vcl_string type_name () const
float get_x (unsigned index)
float get_y (unsigned index)
float get_w ()
float get_h ()
void add_next (vgui_tableau_sptr const &tab)
void add_next (vgui_tableau_sptr const &tab, unsigned &col, unsigned &row)
void add_at (vgui_tableau_sptr const &tab, unsigned col_pos, unsigned row_pos)
void remove_at (unsigned col_pos, unsigned row_pos)
unsigned rows () const
unsigned cols () const
vgui_tableau_sptr get_tableau_at (unsigned col_pos, unsigned row_pos)
vcl_vector< vgui_tableau_sptrget_tableau_list ()
void get_active_position (unsigned *col_pos, unsigned *row_pos)
void get_last_selected_position (unsigned *col_pos, unsigned *row_pos)
int get_selected_positions (vcl_vector< int > *col_pos, vcl_vector< int > *row_pos, vcl_vector< int > *times)
void set_selected (int r, int c, bool onoff=true)
void set_grid_size_changeable (bool v)
void set_uses_paging_events (bool v)
void set_frames_selectable (bool v)
void set_unique_selected (bool u)
void emulate_ntab ()
void layout_grid ()
void layout_grid2 ()
void add_column ()
void remove_column ()
void add_row ()
void remove_row ()
void page_up ()
void page_down ()
bool cell_bounding_box (unsigned col, unsigned row, float &xmin, float &ymin, float &xmax, float &ymax)
void get_popup (vgui_popup_params const &, vgui_menu &)
unsigned size () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
void erase (iterator)
int add (vgui_tableau_sptr const &, float x, float y, float w, float h)
void remove (int id)
void move (int id, float x, float y, float w, float h)
void replace (int id, vgui_tableau_sptr const &tab)
vgui_tableau_sptr get (int id) const
void set_outline_color (const int id, const int r, const int g, const int b)
virtual vcl_string name () const
virtual vcl_string file_name () const
virtual vcl_string pretty_name () const
void get_parents (vcl_vector< vgui_tableau_sptr > *out) const
void get_children (vcl_vector< vgui_tableau_sptr > *out) const
vgui_tableau_sptr get_child (unsigned i) const
virtual bool add_child (vgui_tableau_sptr const &)
virtual bool remove_child (vgui_tableau_sptr const &)
virtual bool notify_replaced_child (vgui_tableau_sptr const &old_child, vgui_tableau_sptr const &new_child)
virtual void add_popup (vgui_menu &)
virtual void post_message (char const *, void const *)
virtual void post_redraw ()
virtual void post_overlay_redraw ()
virtual void post_idle_request ()
virtual bool get_bounding_box (float low[3], float high[3]) const
virtual bool draw ()
virtual bool mouse_down (int x, int y, vgui_button, vgui_modifier)
virtual bool mouse_up (int x, int y, vgui_button, vgui_modifier)
virtual bool motion (int x, int y)
virtual bool key_press (int x, int y, vgui_key, vgui_modifier)
virtual bool help ()
virtual bool idle ()
void ref () const
void unref () const

Static Public Member Functions

static vvid_live_stereo_managerinstance ()
static void get_all (vcl_vector< vgui_tableau_sptr > *out)
static bool exists (vgui_tableau_sptr const &)

Protected Member Functions

bool handle (GLint const vp[4], vgui_event const &e)
int get_active (GLint const vp[4], int wx, int wy) const
int get_current () const
int get_current_id ()
void set_current (GLint const vp[4], int index)

Protected Attributes

int current
vcl_vector< itemsub
bool may_switch_child

Private Member Functions

void run_frames ()

Private Attributes

bool init_successful_
bool live_capture_
int N_views_
unsigned width_
unsigned height_
vgui_windowwin_
vgui_image_tableau_sptr it_
vgui_viewer2D_tableau_sptr v2D_
vcl_vector
< vvid_live_video_tableau_sptr
vframes_
cmu_1394_camera_params cp_
vil1_memory_image_of< vil1_rgb
< unsigned char > > 
process_rgb_
vil1_memory_image_of< unsigned
char > 
process_mono_
vpro_video_process_sptr video_process_

Static Private Attributes

static vvid_live_stereo_managerinstance_ = 0

Constructor & Destructor Documentation

vvid_live_stereo_manager::vvid_live_stereo_manager (  ) 

Definition at line 36 of file vvid_live_stereo_manager.cxx.

vvid_live_stereo_manager::~vvid_live_stereo_manager (  ) 

Definition at line 49 of file vvid_live_stereo_manager.cxx.


Member Function Documentation

vvid_live_stereo_manager * vvid_live_stereo_manager::instance (  )  [static]

Definition at line 25 of file vvid_live_stereo_manager.cxx.

unsigned vvid_live_stereo_manager::get_height (  )  const [inline]

properties of the video frames.

Definition at line 39 of file vvid_live_stereo_manager.h.

unsigned vvid_live_stereo_manager::get_width (  )  const [inline]

Definition at line 40 of file vvid_live_stereo_manager.h.

int vvid_live_stereo_manager::get_N_views (  )  const [inline]

properties of the camera setup.

Definition at line 43 of file vvid_live_stereo_manager.h.

void vvid_live_stereo_manager::set_camera_params (  ) 

control live video actions.

Definition at line 62 of file vvid_live_stereo_manager.cxx.

void vvid_live_stereo_manager::setup_views (  ) 

Definition at line 91 of file vvid_live_stereo_manager.cxx.

void vvid_live_stereo_manager::start_live_video (  ) 

Definition at line 149 of file vvid_live_stereo_manager.cxx.

void vvid_live_stereo_manager::stop_live_video (  ) 

Definition at line 163 of file vvid_live_stereo_manager.cxx.

void vvid_live_stereo_manager::quit (  ) 

Definition at line 172 of file vvid_live_stereo_manager.cxx.

bool vvid_live_stereo_manager::get_current_rgb_image ( int  view_no,
int  pix_sample_interval,
vil1_memory_image_of< vil1_rgb< unsigned char > > &  im 
)

access to the current frames.

Definition at line 179 of file vvid_live_stereo_manager.cxx.

bool vvid_live_stereo_manager::get_current_mono_image ( int  view_no,
int  pix_sample_interval,
vil1_memory_image_of< unsigned char > &  im 
)

Definition at line 196 of file vvid_live_stereo_manager.cxx.

void vvid_live_stereo_manager::set_process_rgb_image ( vil1_memory_image_of< vil1_rgb< unsigned char > > &  im  ) 

control of the process result window.

Definition at line 212 of file vvid_live_stereo_manager.cxx.

void vvid_live_stereo_manager::set_process_mono_image ( vil1_memory_image_of< unsigned char > &  im  ) 

Definition at line 218 of file vvid_live_stereo_manager.cxx.

vgui_window* vvid_live_stereo_manager::get_window (  )  [inline]

access to the window.

Definition at line 63 of file vvid_live_stereo_manager.h.

void vvid_live_stereo_manager::set_window ( vgui_window win  )  [inline]

Definition at line 64 of file vvid_live_stereo_manager.h.

bool vvid_live_stereo_manager::handle ( const vgui_event e  )  [virtual]

the virtual handle function.

make an event handler.

note that we have to get an adaptor and set the tableau to receive events

Reimplemented from vgui_grid_tableau.

Definition at line 55 of file vvid_live_stereo_manager.cxx.

void vvid_live_stereo_manager::run_frames (  )  [private]

Definition at line 117 of file vvid_live_stereo_manager.cxx.


Member Data Documentation

Definition at line 73 of file vvid_live_stereo_manager.h.

Definition at line 74 of file vvid_live_stereo_manager.h.

Definition at line 75 of file vvid_live_stereo_manager.h.

Definition at line 76 of file vvid_live_stereo_manager.h.

Definition at line 77 of file vvid_live_stereo_manager.h.

Definition at line 78 of file vvid_live_stereo_manager.h.

Definition at line 80 of file vvid_live_stereo_manager.h.

Definition at line 81 of file vvid_live_stereo_manager.h.

Definition at line 82 of file vvid_live_stereo_manager.h.

Definition at line 83 of file vvid_live_stereo_manager.h.

Definition at line 84 of file vvid_live_stereo_manager.h.

Definition at line 85 of file vvid_live_stereo_manager.h.

Definition at line 86 of file vvid_live_stereo_manager.h.

Definition at line 87 of file vvid_live_stereo_manager.h.


The documentation for this class was generated from the following files:

Generated on Sun Nov 22 06:40:11 2009 for contrib/brl/vvid by  doxygen 1.5.5