Public Member Functions | Protected Member Functions | Protected Attributes
bbgm_viewer Class Reference

base class for viewers. More...

#include <bbgm_viewer.h>

Inheritance diagram for bbgm_viewer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 bbgm_viewer ()
 Constructor.
virtual ~bbgm_viewer ()
 Destructor.
bool probe (const bbgm_image_sptr &dimg) const
 Probe to see if this viewer can handle this image type.
unsigned int max_components (const bbgm_image_sptr &dimg) const
 Return the maximum number of components if a mixture.
bool apply (const bbgm_image_sptr &dimg, vil_image_view< double > &image) const
 Apply the operations to the distribution image to produce a vil image.
virtual vcl_string name () const =0
 Return the name of this view.
void set_failure_value (const vnl_vector< double > &val)
 Set the value for failure at a pixel.
void set_active_component (unsigned int val)
 Set the value for failure at a pixel.
unsigned int active_component () const
 Return the active component.
void ref ()
void unref ()
int get_references () const
bool is_referenced () const

Protected Member Functions

virtual bbgm_view_maker_sptr find_vm (const vcl_type_info &dist_type) const =0
 Return a pointer to the view_maker that applies to this image type.

Protected Attributes

double fail_val_ [3]
 the data used when a pixel fails the operation.
unsigned int active_component_
 the active component to use if the distribution is a mixture.
bbgm_view_maker_sptr view_maker_
 a cached pointer to the view_maker object last found.

Detailed Description

base class for viewers.

Definition at line 19 of file bbgm_viewer.h.


Constructor & Destructor Documentation

bbgm_viewer::bbgm_viewer ( ) [inline]

Constructor.

Definition at line 23 of file bbgm_viewer.h.

virtual bbgm_viewer::~bbgm_viewer ( ) [inline, virtual]

Destructor.

Definition at line 26 of file bbgm_viewer.h.


Member Function Documentation

unsigned int bbgm_viewer::active_component ( ) const [inline]

Return the active component.

Definition at line 47 of file bbgm_viewer.h.

bool bbgm_viewer::apply ( const bbgm_image_sptr dimg,
vil_image_view< double > &  image 
) const

Apply the operations to the distribution image to produce a vil image.

Definition at line 40 of file bbgm_viewer.cxx.

virtual bbgm_view_maker_sptr bbgm_viewer::find_vm ( const vcl_type_info &  dist_type) const [protected, pure virtual]

Return a pointer to the view_maker that applies to this image type.

Return a null pointer if no such view_maker is found

Implemented in bbgm_weight_viewer, bbgm_variance_viewer, and bbgm_mean_viewer.

unsigned int bbgm_viewer::max_components ( const bbgm_image_sptr dimg) const

Return the maximum number of components if a mixture.

If not a mixture return 1

Definition at line 26 of file bbgm_viewer.cxx.

virtual vcl_string bbgm_viewer::name ( ) const [pure virtual]

Return the name of this view.

Implemented in bbgm_weight_viewer, bbgm_variance_viewer, and bbgm_mean_viewer.

bool bbgm_viewer::probe ( const bbgm_image_sptr dimg) const

Probe to see if this viewer can handle this image type.

Definition at line 12 of file bbgm_viewer.cxx.

void bbgm_viewer::set_active_component ( unsigned int  val) [inline]

Set the value for failure at a pixel.

Definition at line 44 of file bbgm_viewer.h.

void bbgm_viewer::set_failure_value ( const vnl_vector< double > &  val) [inline]

Set the value for failure at a pixel.

Definition at line 40 of file bbgm_viewer.h.


Member Data Documentation

unsigned int bbgm_viewer::active_component_ [protected]

the active component to use if the distribution is a mixture.

Definition at line 58 of file bbgm_viewer.h.

double bbgm_viewer::fail_val_[3] [protected]

the data used when a pixel fails the operation.

Definition at line 56 of file bbgm_viewer.h.

a cached pointer to the view_maker object last found.

Definition at line 60 of file bbgm_viewer.h.


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