Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

bmvv_recon_manager Class Reference

#include <bmvv_recon_manager.h>

Inheritance diagram for bmvv_recon_manager:

Inheritance graph
[legend]
List of all members.

Detailed Description

A manager for displaying segmentation results.

Definition at line 33 of file bmvv_recon_manager.h.

Public Member Functions

 bmvv_recon_manager ()
 constructors/destructor.
 ~bmvv_recon_manager ()
void quit ()
 methods for menu callbacks.
void load_image ()
 load an image an put it in the currently selected grid cell.
void clear_display ()
 Clear the display.
void clear_selected ()
 clear all selections in both panes.
void read_3d_points ()
void initial_model_projection ()
void model_projection ()
void print_selected_corr ()
void pick_corr ()
void write_corrs ()
void read_corrs ()
void compute_homographies ()
void write_homographies ()
void read_homographies ()
void project_image ()
void map_image ()
void set_images ()
void compute_harris_corners ()
void overlapping_projections ()
void overlapping_projections_z ()
void overlapping_harris_proj_z ()
void cross_correlate_plane ()
void cross_correlate_z ()
void cross_correlate_harris_z ()
void depth_image ()
void harris_depth_match ()
void z_corr_image ()
void corr_plot ()
void map_point ()
 map a point from cam a to cam b at depth z.
void map_harris_corners ()
void match_harris_corners ()
void harris_sweep ()
void display_matched_corners ()
void display_harris_3d ()
void write_points_vrml ()
void read_points_vrml ()
void write_volumes_vrml ()
void read_change_data ()
void write_change_volumes_vrml ()
void compute_change ()
void read_f_matrix ()
 read the fundamental matrix.
void show_epipolar_line ()
 pick a point in the left image and show the corresponding epipolar.
void show_world_homography ()
vgui_windowget_window ()
 access to the window.
void set_window (vgui_window *win)
void init ()
 set up the tableaux at each grid cell.
virtual bool handle (const vgui_event &)
 the virtual handle function.
void load_image_file (vcl_string image_filename, bool greyscale, unsigned col, unsigned row)
 load an image an put it in the currently selected grid cell.
bool add_child (vgui_tableau_sptr const &)
bool remove_child (vgui_tableau_sptr const &)
vcl_string file_name () const
vcl_string pretty_name () const
vcl_string type_name () const
bool get_bounding_box (float low[3], float high[3]) const
virtual vcl_string 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 notify_replaced_child (vgui_tableau_sptr const &old_child, vgui_tableau_sptr const &new_child)
virtual void add_popup (vgui_menu &)
virtual void get_popup (vgui_popup_params const &, 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 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 bmvv_recon_managerinstance ()
 The singleton pattern - only one instance of the manager can occur.
static void get_all (vcl_vector< vgui_tableau_sptr > *out)
static bool exists (vgui_tableau_sptr const &)

Public Attributes

vgui_parent_child_link child

Protected Member Functions

void draw_regions (vcl_vector< vtol_intensity_face_sptr > &regions, bool verts=false)
 internal utility methods.
void create_point (int &cam, vsol_point_2d_sptr &p)
 create a point in the pane corresponding to cam.
int get_cam ()
brct_plane_corr_sptr get_selected_corr ()
void draw_corr_point (const float x, const float y)
void draw_vsol_points (const int cam, vcl_vector< vsol_point_2d_sptr > const &points, bool clear=true, const float r=0, const float g=1, const float b=0)
void draw_vsol_point (const int cam, vsol_point_2d_sptr const &point, bool clear=false, const float r=0, const float g=1, const float b=0)
void draw_vsol_3d_points (const int cam, vcl_vector< vsol_point_3d_sptr > const &pts3d, bool clear=true)
 color is determined by depth.
bgui_vtol2D_tableau_sptr get_vtol2D_tableau_at (unsigned col, unsigned row)
 Gets the picker tableau at the given position.
bgui_vtol2D_tableau_sptr get_selected_vtol2D_tableau ()
 Get the vtol_2D_tableau at the currently selected grid cell.
bgui_picker_tableau_sptr get_picker_tableau_at (unsigned col, unsigned row)
 Gets the picker tableau at the given position.
bgui_picker_tableau_sptr get_selected_picker_tableau ()
 Gets the picker tableau at the currently selected grid position.
vil1_image get_image_at (unsigned col, unsigned row)
 Gets the image at the given position.

Private Attributes

bool images_set_
bool harris_set_
vil1_image img_
vgui_windowwin_
vcl_vector< bgui_vtol2D_tableau_sptrvtol_tabs_
vgui_grid_tableau_sptr grid_
brct_plane_calibrator cal_
brct_plane_sweeper sweep_
brct_volume_processor vproc_
int plane_
vcl_map< int, int > point_3d_map_
FMatrix f_matrix_

Static Private Attributes

static bmvv_recon_managerinstance_ = 0


Constructor & Destructor Documentation

bmvv_recon_manager::bmvv_recon_manager  ) 
 

constructors/destructor.

Definition at line 53 of file bmvv_recon_manager.cxx.

bmvv_recon_manager::~bmvv_recon_manager  ) 
 

Definition at line 62 of file bmvv_recon_manager.cxx.


Member Function Documentation

void bmvv_recon_manager::clear_display  ) 
 

Clear the display.

Definition at line 216 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::clear_selected  ) 
 

clear all selections in both panes.

Definition at line 227 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::compute_change  ) 
 

Definition at line 1135 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::compute_harris_corners  ) 
 

Definition at line 604 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::compute_homographies  ) 
 

Definition at line 393 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::corr_plot  ) 
 

Definition at line 852 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::create_point int &  cam,
vsol_point_2d_sptr p
[protected]
 

create a point in the pane corresponding to cam.

Definition at line 872 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::cross_correlate_harris_z  ) 
 

Definition at line 723 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::cross_correlate_plane  ) 
 

Definition at line 663 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::cross_correlate_z  ) 
 

Definition at line 693 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::depth_image  ) 
 

Definition at line 760 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::display_harris_3d  ) 
 

Definition at line 1023 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::display_matched_corners  ) 
 

Definition at line 1007 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::draw_corr_point const float  x,
const float  y
[protected]
 

Definition at line 344 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::draw_regions vcl_vector< vtol_intensity_face_sptr > &  regions,
bool  verts = false
[protected]
 

internal utility methods.

void bmvv_recon_manager::draw_vsol_3d_points const int  cam,
vcl_vector< vsol_point_3d_sptr > const &  pts3d,
bool  clear = true
[protected]
 

color is determined by depth.

Definition at line 571 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::draw_vsol_point const int  cam,
vsol_point_2d_sptr const &  point,
bool  clear = false,
const float  r = 0,
const float  g = 1,
const float  b = 0
[protected]
 

Definition at line 553 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::draw_vsol_points const int  cam,
vcl_vector< vsol_point_2d_sptr > const &  points,
bool  clear = true,
const float  r = 0,
const float  g = 1,
const float  b = 0
[protected]
 

Definition at line 534 of file bmvv_recon_manager.cxx.

int bmvv_recon_manager::get_cam  )  [protected]
 

Definition at line 150 of file bmvv_recon_manager.cxx.

vil1_image bmvv_recon_manager::get_image_at unsigned  col,
unsigned  row
[protected]
 

Gets the image at the given position.

if col, row are out of bounds then null is returned row is currently not used but may be when we have more than 2 cameras

Definition at line 240 of file bmvv_recon_manager.cxx.

bgui_picker_tableau_sptr bmvv_recon_manager::get_picker_tableau_at unsigned  col,
unsigned  row
[protected]
 

Gets the picker tableau at the given position.

Returns a null tableau if it fails

Definition at line 100 of file bmvv_recon_manager.cxx.

brct_plane_corr_sptr bmvv_recon_manager::get_selected_corr  )  [protected]
 

Definition at line 321 of file bmvv_recon_manager.cxx.

bgui_picker_tableau_sptr bmvv_recon_manager::get_selected_picker_tableau  )  [protected]
 

Gets the picker tableau at the currently selected grid position.

Returns a null tableau if it fails

Definition at line 119 of file bmvv_recon_manager.cxx.

bgui_vtol2D_tableau_sptr bmvv_recon_manager::get_selected_vtol2D_tableau  )  [protected]
 

Get the vtol_2D_tableau at the currently selected grid cell.

Definition at line 143 of file bmvv_recon_manager.cxx.

bgui_vtol2D_tableau_sptr bmvv_recon_manager::get_vtol2D_tableau_at unsigned  col,
unsigned  row
[protected]
 

Gets the picker tableau at the given position.

if col, row are out of bounds then null is returned row is currently not used but may be when we have more than 2 cameras

Definition at line 130 of file bmvv_recon_manager.cxx.

vgui_window* bmvv_recon_manager::get_window  )  [inline]
 

access to the window.

Definition at line 88 of file bmvv_recon_manager.h.

bool bmvv_recon_manager::handle const vgui_event e  )  [virtual]
 

the virtual handle function.

note that we have to get an adaptor and set the tableau to receive events this handler does nothing but is a place holder for future event processing For now, just pass the events down to the child tableaux

Reimplemented from vgui_wrapper_tableau.

Definition at line 91 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::harris_depth_match  ) 
 

Definition at line 820 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::harris_sweep  ) 
 

Definition at line 981 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::init  ) 
 

set up the tableaux at each grid cell.

the vtol2D_tableaux have been initialized in the constructor

Definition at line 69 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::initial_model_projection  ) 
 

Definition at line 263 of file bmvv_recon_manager.cxx.

bmvv_recon_manager * bmvv_recon_manager::instance  )  [static]
 

The singleton pattern - only one instance of the manager can occur.

Definition at line 40 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::load_image  ) 
 

load an image an put it in the currently selected grid cell.

Definition at line 181 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::load_image_file vcl_string  image_filename,
bool  greyscale,
unsigned  col,
unsigned  row
 

load an image an put it in the currently selected grid cell.

Definition at line 166 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::map_harris_corners  ) 
 

Definition at line 938 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::map_image  ) 
 

Definition at line 912 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::map_point  ) 
 

map a point from cam a to cam b at depth z.

Definition at line 885 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::match_harris_corners  ) 
 

Definition at line 958 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::model_projection  ) 
 

Definition at line 298 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::overlapping_harris_proj_z  ) 
 

Definition at line 630 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::overlapping_projections  ) 
 

Definition at line 472 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::overlapping_projections_z  ) 
 

Definition at line 502 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::pick_corr  ) 
 

Definition at line 355 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::print_selected_corr  ) 
 

Definition at line 338 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::project_image  ) 
 

Definition at line 423 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::quit  ) 
 

methods for menu callbacks.

Definition at line 159 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::read_3d_points  ) 
 

Definition at line 252 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::read_change_data  ) 
 

Definition at line 1095 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::read_corrs  ) 
 

Definition at line 381 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::read_f_matrix  ) 
 

read the fundamental matrix.

Definition at line 1237 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::read_homographies  ) 
 

Definition at line 411 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::read_points_vrml  ) 
 

Definition at line 1055 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::set_images  ) 
 

Definition at line 448 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::set_window vgui_window win  )  [inline]
 

Definition at line 89 of file bmvv_recon_manager.h.

void bmvv_recon_manager::show_epipolar_line  ) 
 

pick a point in the left image and show the corresponding epipolar.

line in the right image

Definition at line 1261 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::show_world_homography  ) 
 

Definition at line 1291 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::write_change_volumes_vrml  ) 
 

Definition at line 1115 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::write_corrs  ) 
 

Definition at line 369 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::write_homographies  ) 
 

Definition at line 399 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::write_points_vrml  ) 
 

Definition at line 1035 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::write_volumes_vrml  ) 
 

Definition at line 1075 of file bmvv_recon_manager.cxx.

void bmvv_recon_manager::z_corr_image  ) 
 

Definition at line 796 of file bmvv_recon_manager.cxx.


Member Data Documentation

brct_plane_calibrator bmvv_recon_manager::cal_ [private]
 

Definition at line 135 of file bmvv_recon_manager.h.

FMatrix bmvv_recon_manager::f_matrix_ [private]
 

Definition at line 141 of file bmvv_recon_manager.h.

vgui_grid_tableau_sptr bmvv_recon_manager::grid_ [private]
 

Definition at line 134 of file bmvv_recon_manager.h.

bool bmvv_recon_manager::harris_set_ [private]
 

Definition at line 130 of file bmvv_recon_manager.h.

bool bmvv_recon_manager::images_set_ [private]
 

Definition at line 129 of file bmvv_recon_manager.h.

vil1_image bmvv_recon_manager::img_ [private]
 

Definition at line 131 of file bmvv_recon_manager.h.

bmvv_recon_manager * bmvv_recon_manager::instance_ = 0 [static, private]
 

Definition at line 140 of file bmvv_recon_manager.h.

int bmvv_recon_manager::plane_ [private]
 

Definition at line 138 of file bmvv_recon_manager.h.

vcl_map<int, int> bmvv_recon_manager::point_3d_map_ [private]
 

Definition at line 139 of file bmvv_recon_manager.h.

brct_plane_sweeper bmvv_recon_manager::sweep_ [private]
 

Definition at line 136 of file bmvv_recon_manager.h.

brct_volume_processor bmvv_recon_manager::vproc_ [private]
 

Definition at line 137 of file bmvv_recon_manager.h.

vcl_vector<bgui_vtol2D_tableau_sptr> bmvv_recon_manager::vtol_tabs_ [private]
 

Definition at line 133 of file bmvv_recon_manager.h.

vgui_window* bmvv_recon_manager::win_ [private]
 

Definition at line 132 of file bmvv_recon_manager.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 14:54:22 2008 for contrib/brl/bmvl/bmvv by  doxygen 1.4.4