#include <segv_vil_segmentation_manager.h>
Public Member Functions | |
segv_vil_segmentation_manager () | |
~segv_vil_segmentation_manager () | |
void | quit () |
void | load_image () |
void | save_image () |
void | save_nitf_camera () |
void | save_mask () |
void | set_range_params () |
void | inline_viewer () |
void | intensity_profile () |
void | intensity_histogram () |
void | display_images_as_color () |
Show combined greyscale images in up to three planes as a color image. | |
void | image_as_vrml_points () |
void | flip_image_lr () |
void | rotate_image () |
void | reduce_image () |
void | reduce_image_bicubic () |
void | expand_image () |
void | expand_image_bicubic () |
void | add_images () |
void | subtract_images () |
void | negate_image () |
void | entropy () |
void | minfo () |
void | max_trace_scale () |
void | color_order () |
void | extrema () |
void | rot_extrema () |
void | beaudet () |
void | parallel_coverage () |
void | gradient_mag_angle () |
void | fft () |
void | gaussian () |
void | abs_value () |
void | threshold_image () |
void | harris_corners () |
void | nonmaximal_suppression () |
void | vd_edges () |
void | third_order_edges () |
void | fit_lines () |
void | fit_conics () |
void | fit_overlay_conics () |
void | regions () |
void | mser_conics () |
void | draw_line_image () |
it receives an image of line definitions and draws the lines on the tableau. | |
void | project_points () |
############## New method to project 3D points ##################. | |
void | clear_display () |
Clear spatial objects from the selected display. | |
void | clear_all () |
Clear spatial objects from all spatial panes. | |
void | init () |
Set up the tableaux. | |
void | remove_image () |
remove the selected image. | |
void | convert_to_grey () |
void | clear_mask () |
void | add_poly_to_mask () |
void | load_image_nomenu (vcl_string const &path) |
void | crop_image () |
void | create_polygon () |
drawing. | |
void | create_roi () |
void | display_roi () |
vgui_window * | get_window () |
access to the window. | |
void | set_window (vgui_window *win) |
access to the window. | |
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 | handle (vgui_event 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 segv_vil_segmentation_manager * | instance () |
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_edges (vcl_vector< vtol_edge_2d_sptr > &edges, bool verts=false) |
Draw edges onto the tableau. | |
void | draw_lines (vcl_vector< vsol_line_2d_sptr > const &line_segs, const vgui_style_sptr &style=NULL) |
Draw line segments on the tableau. | |
void | draw_conics (vcl_vector< vsol_conic_2d_sptr > const &conic_segs, const vgui_style_sptr &style=NULL) |
Draw conic segments on the tableau. | |
void | draw_polylines (vcl_vector< vsol_polyline_2d_sptr > const &polys) |
Draw polylines on the tableau. | |
void | draw_regions (vcl_vector< vtol_intensity_face_sptr > ®ions, bool verts=false) |
void | draw_points (vcl_vector< vsol_point_2d_sptr > const &points, const vgui_style_sptr &style) |
Draw points on the tableau. | |
void | set_selected_grid_image (vil_image_resource_sptr const &image, vgui_range_map_params_sptr const &rmps=0) |
set the image at the currently selected grid cell. | |
void | add_image_at (vil_image_resource_sptr const &image, const unsigned col, const unsigned row, vgui_range_map_params_sptr const &rmps=0) |
Add an image at the specified grid cell. | |
void | add_image (vil_image_resource_sptr const &image, vgui_range_map_params_sptr const &rmps=0) |
Add an image to the currently selected grid cell. | |
vil_image_resource_sptr | selected_image () |
vil_image_resource_sptr | image_at (const unsigned col, const unsigned row) |
bool | set_image_at (const unsigned col, const unsigned row, vil_image_resource_sptr const &image) |
bgui_image_tableau_sptr | selected_image_tab () |
Get the image tableau for the currently selected grid cell. | |
bgui_vtol2D_tableau_sptr | vtol2D_tab_at (const unsigned col, const unsigned row) |
Get the vtol2D tableau at the specified grid cell. | |
bgui_vtol2D_tableau_sptr | selected_vtol2D_tab () |
Get the vtol2D tableau for the currently selected grid cell. | |
bgui_picker_tableau_sptr | selected_picker_tab () |
Get the picker tableau for the currently selected grid cell. | |
vtol_face_2d_sptr | face_at (const int col, const int row) |
vgui_range_map_params_sptr | range_params (vil_image_resource_sptr const &image) |
Calculate the range parameters for the input image. | |
Private Attributes | |
bool | first_ |
vgui_window * | win_ |
vgui_grid_tableau_sptr | grid_ |
vtol_face_2d_sptr | foreground_face_ |
vtol_face_2d_sptr | background_face_ |
bgui_bargraph_clipon_tableau_sptr | bargraph_ |
vcl_vector< vsol_polygon_2d_sptr > | mask_ |
brip_roi_sptr | roi_ |
Static Private Attributes | |
static segv_vil_segmentation_manager * | instance_ = 0 |
Definition at line 38 of file segv_vil_segmentation_manager.h.
segv_vil_segmentation_manager::segv_vil_segmentation_manager | ( | ) |
Definition at line 103 of file segv_vil_segmentation_manager.cxx.
segv_vil_segmentation_manager::~segv_vil_segmentation_manager | ( | ) |
Definition at line 108 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::abs_value | ( | ) |
Definition at line 1446 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::add_image | ( | vil_image_resource_sptr const & | image, |
vgui_range_map_params_sptr const & | rmps = 0 |
||
) | [protected] |
Add an image to the currently selected grid cell.
Definition at line 193 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::add_image_at | ( | vil_image_resource_sptr const & | image, |
const unsigned | col, | ||
const unsigned | row, | ||
vgui_range_map_params_sptr const & | rmps = 0 |
||
) | [protected] |
Add an image at the specified grid cell.
Definition at line 175 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::add_images | ( | ) |
Definition at line 1504 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::add_poly_to_mask | ( | ) |
void segv_vil_segmentation_manager::beaudet | ( | ) |
Definition at line 2034 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::clear_all | ( | ) |
Clear spatial objects from all spatial panes.
Definition at line 326 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::clear_display | ( | ) |
Clear spatial objects from the selected display.
Definition at line 316 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::clear_mask | ( | ) |
Definition at line 1839 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::color_order | ( | ) |
Definition at line 1784 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::convert_to_grey | ( | ) |
Definition at line 210 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::create_polygon | ( | ) |
drawing.
Definition at line 1812 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::create_roi | ( | ) |
Definition at line 1397 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::crop_image | ( | ) |
Definition at line 1408 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::display_images_as_color | ( | ) |
Show combined greyscale images in up to three planes as a color image.
Assume images are arranged by columns
Definition at line 1300 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::display_roi | ( | ) |
Definition at line 1367 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::draw_conics | ( | vcl_vector< vsol_conic_2d_sptr > const & | conic_segs, |
const vgui_style_sptr & | style = NULL |
||
) | [protected] |
Draw conic segments on the tableau.
Definition at line 433 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::draw_edges | ( | vcl_vector< vtol_edge_2d_sptr > & | edges, |
bool | verts = false |
||
) | [protected] |
Draw edges onto the tableau.
Definition at line 341 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::draw_line_image | ( | ) |
it receives an image of line definitions and draws the lines on the tableau.
The image is expected to have three planes to save (x,y,theta) of each line. (x,y) is the position of the edge and theta is the direction angle in radians
Definition at line 2085 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::draw_lines | ( | vcl_vector< vsol_line_2d_sptr > const & | line_segs, |
const vgui_style_sptr & | style = NULL |
||
) | [protected] |
Draw line segments on the tableau.
Definition at line 406 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::draw_points | ( | vcl_vector< vsol_point_2d_sptr > const & | points, |
const vgui_style_sptr & | style | ||
) | [protected] |
Draw points on the tableau.
Definition at line 459 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::draw_polylines | ( | vcl_vector< vsol_polyline_2d_sptr > const & | polys | ) | [protected] |
Draw polylines on the tableau.
Definition at line 382 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::draw_regions | ( | vcl_vector< vtol_intensity_face_sptr > & | regions, |
bool | verts = false |
||
) | [protected] |
Definition at line 482 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::entropy | ( | ) |
Definition at line 1568 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::expand_image | ( | ) |
Definition at line 1703 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::expand_image_bicubic | ( | ) |
Definition at line 1727 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::extrema | ( | ) |
Definition at line 1894 of file segv_vil_segmentation_manager.cxx.
vtol_face_2d_sptr segv_vil_segmentation_manager::face_at | ( | const int | col, |
const int | row | ||
) | [protected] |
void segv_vil_segmentation_manager::fft | ( | ) |
Definition at line 2211 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::fit_conics | ( | ) |
Definition at line 1034 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::fit_lines | ( | ) |
Definition at line 983 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::fit_overlay_conics | ( | ) |
Definition at line 1100 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::flip_image_lr | ( | ) |
Definition at line 1745 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::gaussian | ( | ) |
Definition at line 1428 of file segv_vil_segmentation_manager.cxx.
vgui_window* segv_vil_segmentation_manager::get_window | ( | ) | [inline] |
access to the window.
Definition at line 121 of file segv_vil_segmentation_manager.h.
void segv_vil_segmentation_manager::gradient_mag_angle | ( | ) |
Definition at line 2126 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::harris_corners | ( | ) |
Definition at line 783 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::image_as_vrml_points | ( | ) |
Definition at line 1869 of file segv_vil_segmentation_manager.cxx.
vil_image_resource_sptr segv_vil_segmentation_manager::image_at | ( | const unsigned | col, |
const unsigned | row | ||
) | [protected] |
Definition at line 295 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::init | ( | ) |
Set up the tableaux.
Definition at line 113 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::inline_viewer | ( | ) |
Definition at line 1459 of file segv_vil_segmentation_manager.cxx.
segv_vil_segmentation_manager * segv_vil_segmentation_manager::instance | ( | ) | [static] |
Definition at line 90 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::intensity_histogram | ( | ) |
Definition at line 1474 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::intensity_profile | ( | ) |
Definition at line 1341 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::load_image | ( | ) |
Definition at line 514 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::load_image_nomenu | ( | vcl_string const & | path | ) |
Definition at line 591 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::max_trace_scale | ( | ) |
Definition at line 1761 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::minfo | ( | ) |
Definition at line 1596 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::mser_conics | ( | ) |
Definition at line 1849 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::negate_image | ( | ) |
Definition at line 1555 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::nonmaximal_suppression | ( | ) |
Definition at line 817 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::parallel_coverage | ( | ) |
Definition at line 2059 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::project_points | ( | ) |
############## New method to project 3D points ##################.
Definition at line 1173 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::quit | ( | ) |
Definition at line 508 of file segv_vil_segmentation_manager.cxx.
vgui_range_map_params_sptr segv_vil_segmentation_manager::range_params | ( | vil_image_resource_sptr const & | image | ) | [protected] |
Calculate the range parameters for the input image.
Definition at line 129 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::reduce_image | ( | ) |
Definition at line 1660 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::reduce_image_bicubic | ( | ) |
Definition at line 1684 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::regions | ( | ) |
Definition at line 1234 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::remove_image | ( | ) |
remove the selected image.
Definition at line 203 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::rot_extrema | ( | ) |
Definition at line 1997 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::rotate_image | ( | ) |
Definition at line 1635 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::save_image | ( | ) |
Definition at line 644 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::save_mask | ( | ) |
Definition at line 1844 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::save_nitf_camera | ( | ) |
Definition at line 689 of file segv_vil_segmentation_manager.cxx.
vil_image_resource_sptr segv_vil_segmentation_manager::selected_image | ( | ) | [protected] |
Definition at line 287 of file segv_vil_segmentation_manager.cxx.
bgui_image_tableau_sptr segv_vil_segmentation_manager::selected_image_tab | ( | ) | [protected] |
Get the image tableau for the currently selected grid cell.
Definition at line 222 of file segv_vil_segmentation_manager.cxx.
bgui_picker_tableau_sptr segv_vil_segmentation_manager::selected_picker_tab | ( | ) | [protected] |
Get the picker tableau for the currently selected grid cell.
Definition at line 268 of file segv_vil_segmentation_manager.cxx.
bgui_vtol2D_tableau_sptr segv_vil_segmentation_manager::selected_vtol2D_tab | ( | ) | [protected] |
Get the vtol2D tableau for the currently selected grid cell.
Definition at line 260 of file segv_vil_segmentation_manager.cxx.
bool segv_vil_segmentation_manager::set_image_at | ( | const unsigned | col, |
const unsigned | row, | ||
vil_image_resource_sptr const & | image | ||
) | [protected] |
void segv_vil_segmentation_manager::set_range_params | ( | ) |
Definition at line 714 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::set_selected_grid_image | ( | vil_image_resource_sptr const & | image, |
vgui_range_map_params_sptr const & | rmps = 0 |
||
) | [protected] |
set the image at the currently selected grid cell.
Definition at line 159 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::set_window | ( | vgui_window * | win | ) | [inline] |
access to the window.
Definition at line 123 of file segv_vil_segmentation_manager.h.
void segv_vil_segmentation_manager::subtract_images | ( | ) |
Definition at line 1530 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::third_order_edges | ( | ) |
Definition at line 957 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::threshold_image | ( | ) |
Definition at line 763 of file segv_vil_segmentation_manager.cxx.
void segv_vil_segmentation_manager::vd_edges | ( | ) |
Definition at line 922 of file segv_vil_segmentation_manager.cxx.
bgui_vtol2D_tableau_sptr segv_vil_segmentation_manager::vtol2D_tab_at | ( | const unsigned | col, |
const unsigned | row | ||
) | [protected] |
Get the vtol2D tableau at the specified grid cell.
Definition at line 242 of file segv_vil_segmentation_manager.cxx.
Definition at line 165 of file segv_vil_segmentation_manager.h.
Definition at line 166 of file segv_vil_segmentation_manager.h.
bool segv_vil_segmentation_manager::first_ [private] |
Definition at line 161 of file segv_vil_segmentation_manager.h.
Definition at line 164 of file segv_vil_segmentation_manager.h.
Definition at line 163 of file segv_vil_segmentation_manager.h.
segv_vil_segmentation_manager * segv_vil_segmentation_manager::instance_ = 0 [static, private] |
Definition at line 169 of file segv_vil_segmentation_manager.h.
vcl_vector<vsol_polygon_2d_sptr> segv_vil_segmentation_manager::mask_ [private] |
Definition at line 167 of file segv_vil_segmentation_manager.h.
brip_roi_sptr segv_vil_segmentation_manager::roi_ [private] |
Definition at line 168 of file segv_vil_segmentation_manager.h.
vgui_window* segv_vil_segmentation_manager::win_ [private] |
Definition at line 162 of file segv_vil_segmentation_manager.h.