Public Member Functions | Private Member Functions | Private Attributes
bgui_image_utils Class Reference

#include <bgui_image_utils.h>

List of all members.

Public Member Functions

 bgui_image_utils ()
 constructors.
 bgui_image_utils (vil_image_resource_sptr const &image, vsol_polygon_2d_sptr const &poly=0)
 ~bgui_image_utils ()
void set_image (vil_image_resource_sptr const &image)
 Set the image on which properties are computed.
void set_poly (vsol_polygon_2d_sptr const &poly)
void set_bin_limit (unsigned bin_limit)
void set_n_skip_upper_bins (unsigned n_skip)
void set_n_skip_lower_bins (unsigned n_skip)
void set_percent_limit (double limit)
void set_min_blocks (unsigned min_blocks)
void set_scan_fraction (double scan_fraction)
bool range (double &min_value, double &max_value, unsigned plane=0)
bsta_histogram< double > histogram (unsigned plane=0)
bgui_graph_tableau_sptr hist_graph ()
bool default_range_map (vgui_range_map_params_sptr &rmp, double gamma=1.0, bool invert=false, bool gl_map=false, bool cache=true)
 Default range map based on default max min values.
bool range_map_from_hist (float gamma, bool invert, bool gl_map, bool cache, vgui_range_map_params_sptr &rmp)
 Range map computed from the image histogram.

Private Member Functions

bool init_histogram_from_data ()
bool set_data_from_view (vil_image_view_base_sptr const &view, double fraction=1.0)
bool set_data_by_random_blocks (const unsigned total_num_blocks, vil_blocked_image_resource_sptr const &bir, double fraction=1.0)
bool set_data_inside_polygon (vil_blocked_image_resource_sptr const &bir)
bool construct_histogram ()
double compute_lower_bound (unsigned plane=0)
double compute_upper_bound (unsigned plane=0)

Private Attributes

bool hist_valid_
double percent_limit_
unsigned bin_limit_
unsigned n_skip_upper_bins_
unsigned n_skip_lower_bins_
unsigned min_blocks_
double scan_fraction_
vil_image_resource_sptr image_
vsol_polygon_2d_sptr poly_
vcl_vector< bsta_histogram
< double > > 
hist_
vcl_vector< vcl_vector< double > > data_

Detailed Description

Definition at line 22 of file bgui_image_utils.h.


Constructor & Destructor Documentation

bgui_image_utils::bgui_image_utils ( )

constructors.

Definition at line 20 of file bgui_image_utils.cxx.

bgui_image_utils::bgui_image_utils ( vil_image_resource_sptr const &  image,
vsol_polygon_2d_sptr const &  poly = 0 
)

Definition at line 27 of file bgui_image_utils.cxx.

bgui_image_utils::~bgui_image_utils ( ) [inline]

Definition at line 31 of file bgui_image_utils.h.


Member Function Documentation

double bgui_image_utils::compute_lower_bound ( unsigned  plane = 0) [private]

Definition at line 283 of file bgui_image_utils.cxx.

double bgui_image_utils::compute_upper_bound ( unsigned  plane = 0) [private]

Definition at line 290 of file bgui_image_utils.cxx.

bool bgui_image_utils::construct_histogram ( ) [private]

Definition at line 258 of file bgui_image_utils.cxx.

bool bgui_image_utils::default_range_map ( vgui_range_map_params_sptr rmp,
double  gamma = 1.0,
bool  invert = false,
bool  gl_map = false,
bool  cache = true 
)

Default range map based on default max min values.

Definition at line 377 of file bgui_image_utils.cxx.

bgui_graph_tableau_sptr bgui_image_utils::hist_graph ( )

Definition at line 298 of file bgui_image_utils.cxx.

bsta_histogram<double> bgui_image_utils::histogram ( unsigned  plane = 0) [inline]

Definition at line 45 of file bgui_image_utils.h.

bool bgui_image_utils::init_histogram_from_data ( ) [private]

Definition at line 73 of file bgui_image_utils.cxx.

bool bgui_image_utils::range ( double &  min_value,
double &  max_value,
unsigned  plane = 0 
)

Definition at line 60 of file bgui_image_utils.cxx.

bool bgui_image_utils::range_map_from_hist ( float  gamma,
bool  invert,
bool  gl_map,
bool  cache,
vgui_range_map_params_sptr rmp 
)

Range map computed from the image histogram.

Definition at line 418 of file bgui_image_utils.cxx.

void bgui_image_utils::set_bin_limit ( unsigned  bin_limit) [inline]

Definition at line 37 of file bgui_image_utils.h.

bool bgui_image_utils::set_data_by_random_blocks ( const unsigned  total_num_blocks,
vil_blocked_image_resource_sptr const &  bir,
double  fraction = 1.0 
) [private]

Definition at line 215 of file bgui_image_utils.cxx.

bool bgui_image_utils::set_data_from_view ( vil_image_view_base_sptr const &  view,
double  fraction = 1.0 
) [private]

Definition at line 164 of file bgui_image_utils.cxx.

bool bgui_image_utils::set_data_inside_polygon ( vil_blocked_image_resource_sptr const &  bir) [private]

Definition at line 231 of file bgui_image_utils.cxx.

void bgui_image_utils::set_image ( vil_image_resource_sptr const &  image)

Set the image on which properties are computed.

Definition at line 41 of file bgui_image_utils.cxx.

void bgui_image_utils::set_min_blocks ( unsigned  min_blocks) [inline]

Definition at line 41 of file bgui_image_utils.h.

void bgui_image_utils::set_n_skip_lower_bins ( unsigned  n_skip) [inline]

Definition at line 39 of file bgui_image_utils.h.

void bgui_image_utils::set_n_skip_upper_bins ( unsigned  n_skip) [inline]

Definition at line 38 of file bgui_image_utils.h.

void bgui_image_utils::set_percent_limit ( double  limit) [inline]

Definition at line 40 of file bgui_image_utils.h.

void bgui_image_utils::set_poly ( vsol_polygon_2d_sptr const &  poly)

Definition at line 55 of file bgui_image_utils.cxx.

void bgui_image_utils::set_scan_fraction ( double  scan_fraction) [inline]

Definition at line 42 of file bgui_image_utils.h.


Member Data Documentation

unsigned bgui_image_utils::bin_limit_ [private]

Definition at line 79 of file bgui_image_utils.h.

vcl_vector<vcl_vector<double> > bgui_image_utils::data_ [private]

Definition at line 88 of file bgui_image_utils.h.

vcl_vector<bsta_histogram<double> > bgui_image_utils::hist_ [private]

Definition at line 87 of file bgui_image_utils.h.

Definition at line 77 of file bgui_image_utils.h.

Definition at line 85 of file bgui_image_utils.h.

unsigned bgui_image_utils::min_blocks_ [private]

Definition at line 82 of file bgui_image_utils.h.

Definition at line 81 of file bgui_image_utils.h.

Definition at line 80 of file bgui_image_utils.h.

Definition at line 78 of file bgui_image_utils.h.

Definition at line 86 of file bgui_image_utils.h.

Definition at line 83 of file bgui_image_utils.h.


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