23 #ifndef _PLUGINS_BUMBLEBEE2_CALIB_BB2CALIB_H_
24 #define _PLUGINS_BUMBLEBEE2_CALIB_BB2CALIB_H_
26 #include <gui_utils/connection_dispatcher.h>
33 class InterfaceDispatcher;
34 class OpenCVStereoParamsInterface;
37 namespace firevision {
48 void on_connection_clicked();
51 void on_exit_clicked();
53 void on_pre_filter_type_changed();
54 void on_pre_filter_size_changed();
55 void on_pre_filter_cap_changed();
56 void on_sad_window_size_changed();
57 void on_min_disparity_changed();
58 void on_num_disparities_changed();
59 void on_texture_threshold_changed();
60 void on_uniqueness_ratio_changed();
61 void on_speckle_window_size_changed();
62 void on_speckle_range_changed();
63 void on_try_smaller_windows_toggled();
65 void update_param_values();
67 void dont_destroy(
const guint8 *data);
69 bool convert_str2float(Glib::ustring sn,
float *f);
70 Glib::ustring convert_float2str(
float f,
unsigned int width = 2);
82 unsigned char * buffer_rgb_disparity_;
83 unsigned char * buffer_rgb_rect_left_;
84 sigc::connection sconn_update_images_;
86 Gtk::ComboBox * cmb_pre_filter_type;
87 Gtk::Label * lab_pre_filter_type;
88 Gtk::HScale * hsc_pre_filter_size;
89 Gtk::Label * lab_pre_filter_size;
90 Gtk::HScale * hsc_pre_filter_cap;
91 Gtk::Label * lab_pre_filter_cap;
92 Gtk::HScale * hsc_sad_window_size;
93 Gtk::Label * lab_sad_window_size;
94 Gtk::HScale * hsc_min_disparity;
95 Gtk::Label * lab_min_disparity;
96 Gtk::HScale * hsc_num_disparities;
97 Gtk::Label * lab_num_disparities;
98 Gtk::HScale * hsc_texture_threshold;
99 Gtk::Label * lab_texture_threshold;
100 Gtk::HScale * hsc_uniqueness_ratio;
101 Gtk::Label * lab_uniqueness_ratio;
102 Gtk::HScale * hsc_speckle_window_size;
103 Gtk::Label * lab_speckle_window_size;
104 Gtk::HScale * hsc_speckle_range;
105 Gtk::Label * lab_speckle_range;
106 Gtk::CheckButton *cb_try_smaller_windows;
107 Gtk::Label * lab_try_smaller_windows;
108 Gtk::ToolButton * tb_connection;
109 Gtk::ToolButton * tb_exit;
110 Gtk::Image * img_left_rectified;
111 Gtk::Image * img_disparity;
112 Gtk::Image * img_writer;