#include <bmvv_recon_manager.h>
Inheritance diagram for bmvv_recon_manager:

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_window * | get_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_manager * | instance () |
| 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 > ®ions, 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_window * | win_ |
| vcl_vector< bgui_vtol2D_tableau_sptr > | vtol_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_manager * | instance_ |
| bmvv_recon_manager::bmvv_recon_manager | ( | ) |
| bmvv_recon_manager::~bmvv_recon_manager | ( | ) |
Definition at line 66 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 44 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::quit | ( | ) |
| void bmvv_recon_manager::load_image | ( | ) |
load an image an put it in the currently selected grid cell.
Definition at line 185 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::clear_display | ( | ) |
| void bmvv_recon_manager::clear_selected | ( | ) |
| void bmvv_recon_manager::read_3d_points | ( | ) |
Definition at line 256 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::initial_model_projection | ( | ) |
Definition at line 267 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::model_projection | ( | ) |
Definition at line 301 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::print_selected_corr | ( | ) |
Definition at line 340 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::pick_corr | ( | ) |
Definition at line 357 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::write_corrs | ( | ) |
Definition at line 371 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::read_corrs | ( | ) |
Definition at line 383 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::compute_homographies | ( | ) |
Definition at line 395 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::write_homographies | ( | ) |
Definition at line 401 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::read_homographies | ( | ) |
Definition at line 413 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::project_image | ( | ) |
Definition at line 425 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::map_image | ( | ) |
Definition at line 914 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::set_images | ( | ) |
Definition at line 450 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::compute_harris_corners | ( | ) |
Definition at line 606 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::overlapping_projections | ( | ) |
Definition at line 474 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::overlapping_projections_z | ( | ) |
Definition at line 504 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::overlapping_harris_proj_z | ( | ) |
Definition at line 632 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::cross_correlate_plane | ( | ) |
Definition at line 665 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::cross_correlate_z | ( | ) |
Definition at line 695 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::cross_correlate_harris_z | ( | ) |
Definition at line 725 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::depth_image | ( | ) |
Definition at line 762 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::harris_depth_match | ( | ) |
Definition at line 822 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::z_corr_image | ( | ) |
Definition at line 798 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::corr_plot | ( | ) |
Definition at line 854 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::map_point | ( | ) |
| void bmvv_recon_manager::map_harris_corners | ( | ) |
Definition at line 940 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::match_harris_corners | ( | ) |
Definition at line 960 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::harris_sweep | ( | ) |
Definition at line 983 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::display_matched_corners | ( | ) |
Definition at line 1009 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::display_harris_3d | ( | ) |
Definition at line 1025 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::write_points_vrml | ( | ) |
Definition at line 1037 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::read_points_vrml | ( | ) |
Definition at line 1057 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::write_volumes_vrml | ( | ) |
Definition at line 1077 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::read_change_data | ( | ) |
Definition at line 1097 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::write_change_volumes_vrml | ( | ) |
Definition at line 1117 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::compute_change | ( | ) |
Definition at line 1137 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::read_f_matrix | ( | ) |
| 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 1263 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::show_world_homography | ( | ) |
Definition at line 1293 of file bmvv_recon_manager.cxx.
| vgui_window* bmvv_recon_manager::get_window | ( | ) | [inline] |
| void bmvv_recon_manager::set_window | ( | vgui_window * | win | ) | [inline] |
Definition at line 89 of file bmvv_recon_manager.h.
| 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 73 of file bmvv_recon_manager.cxx.
| 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 95 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 170 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::create_point | ( | int & | cam, | |
| vsol_point_2d_sptr & | p | |||
| ) | [protected] |
create a point in the pane corresponding to cam.
Definition at line 874 of file bmvv_recon_manager.cxx.
| int bmvv_recon_manager::get_cam | ( | ) | [protected] |
Definition at line 154 of file bmvv_recon_manager.cxx.
| brct_plane_corr_sptr bmvv_recon_manager::get_selected_corr | ( | ) | [protected] |
Definition at line 323 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::draw_corr_point | ( | const float | x, | |
| const float | y | |||
| ) | [protected] |
Definition at line 346 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 536 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 555 of file bmvv_recon_manager.cxx.
| void bmvv_recon_manager::draw_vsol_3d_points | ( | const int | cam, | |
| vcl_vector< vsol_point_3d_sptr > const & | pts3d, | |||
| bool | clear = true | |||
| ) | [protected] |
| 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 134 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 147 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 104 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 123 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 244 of file bmvv_recon_manager.cxx.
bool bmvv_recon_manager::images_set_ [private] |
Definition at line 129 of file bmvv_recon_manager.h.
bool bmvv_recon_manager::harris_set_ [private] |
Definition at line 130 of file bmvv_recon_manager.h.
vil1_image bmvv_recon_manager::img_ [private] |
Definition at line 131 of file bmvv_recon_manager.h.
vgui_window* bmvv_recon_manager::win_ [private] |
Definition at line 132 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_grid_tableau_sptr bmvv_recon_manager::grid_ [private] |
Definition at line 134 of file bmvv_recon_manager.h.
Definition at line 135 of file bmvv_recon_manager.h.
brct_plane_sweeper bmvv_recon_manager::sweep_ [private] |
Definition at line 136 of file bmvv_recon_manager.h.
Definition at line 137 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.
bmvv_recon_manager * bmvv_recon_manager::instance_ [static, private] |
Definition at line 140 of file bmvv_recon_manager.h.
FMatrix bmvv_recon_manager::f_matrix_ [private] |
Definition at line 141 of file bmvv_recon_manager.h.
1.5.1