Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

bmrf_arc Class Reference

#include <bmrf_arc.h>

Inheritance diagram for bmrf_arc:

Inheritance graph
[legend]
List of all members.

Detailed Description

Directed arc from one node to another.

Definition at line 24 of file bmrf_arc.h.

Public Member Functions

 bmrf_arc ()
 Constructor.
 bmrf_arc (bmrf_arc const &a)
 Copy constructor.
 bmrf_arc (const bmrf_node_sptr &f, const bmrf_node_sptr &t)
 Constructor.
 ~bmrf_arc ()
 Destructor.
bmrf_arc_sptr reverse () const
 Produce a new arc which is the reverse of this one efficiently.
void b_write (vsl_b_ostream &os) const
 Binary save self to stream.
void b_read (vsl_b_istream &is)
 Binary load self from stream.
double probability ()
 Return the probability of this arc.
double min_alpha () const
 Return the minimum alpha in common with both nodes.
double max_alpha () const
 Return the maximum alpha in common with both nodes.
double avg_intensity_error () const
 Return the average intesity error.
double induced_gamma () const
 Return the constant gamma value induced by the segment pair.
double induced_gamma_inv () const
 Return the constant inverse gamma value induced by the segment pair.
bmrf_gamma_func_sptr gamma_func ()
 Return the piecewise linear gamma function fit to the pair.
double induced_match_error () const
 Return the average match error given the induced gamma.
int time_step () const
 The change in time spanned by this arc.
bmrf_node_sptr from ()
 Smart pointer to the node where this arc originates.
bmrf_node_sptr to ()
 Smart pointer to the node where this arc ends.
void time_init ()
 Compute the alpha range and intensity comparison.
void ref ()
void unref ()
int get_references () const
bool is_referenced () const

Private Attributes

bmrf_nodefrom_
bmrf_nodeto_
double probability_
double min_alpha_
double max_alpha_
double gamma_
double inv_gamma_
double avg_intensity_error_
double induced_match_error_
bmrf_gamma_func_sptr gamma_func_

Friends

class bmrf_node


Constructor & Destructor Documentation

bmrf_arc::bmrf_arc  ) 
 

Constructor.

Definition at line 15 of file bmrf_arc.cxx.

bmrf_arc::bmrf_arc bmrf_arc const &  a  ) 
 

Copy constructor.

Definition at line 26 of file bmrf_arc.cxx.

bmrf_arc::bmrf_arc const bmrf_node_sptr f,
const bmrf_node_sptr t
 

Constructor.

Definition at line 37 of file bmrf_arc.cxx.

bmrf_arc::~bmrf_arc  )  [inline]
 

Destructor.

Definition at line 36 of file bmrf_arc.h.


Member Function Documentation

double bmrf_arc::avg_intensity_error  )  const [inline]
 

Return the average intesity error.

Definition at line 57 of file bmrf_arc.h.

void bmrf_arc::b_read vsl_b_istream is  ) 
 

Binary load self from stream.

Definition at line 105 of file bmrf_arc.cxx.

void bmrf_arc::b_write vsl_b_ostream os  )  const
 

Binary save self to stream.

Definition at line 97 of file bmrf_arc.cxx.

bmrf_node_sptr bmrf_arc::from  )  [inline]
 

Smart pointer to the node where this arc originates.

Definition at line 77 of file bmrf_arc.h.

bmrf_gamma_func_sptr bmrf_arc::gamma_func  ) 
 

Return the piecewise linear gamma function fit to the pair.

Definition at line 142 of file bmrf_arc.cxx.

double bmrf_arc::induced_gamma  )  const [inline]
 

Return the constant gamma value induced by the segment pair.

Note:
this maps the "from" arc to the "to" arc

Definition at line 61 of file bmrf_arc.h.

double bmrf_arc::induced_gamma_inv  )  const [inline]
 

Return the constant inverse gamma value induced by the segment pair.

Note:
this maps the "to" arc to the "from" arc

Definition at line 65 of file bmrf_arc.h.

double bmrf_arc::induced_match_error  )  const [inline]
 

Return the average match error given the induced gamma.

Definition at line 71 of file bmrf_arc.h.

double bmrf_arc::max_alpha  )  const [inline]
 

Return the maximum alpha in common with both nodes.

Definition at line 54 of file bmrf_arc.h.

double bmrf_arc::min_alpha  )  const [inline]
 

Return the minimum alpha in common with both nodes.

Definition at line 51 of file bmrf_arc.h.

double bmrf_arc::probability  ) 
 

Return the probability of this arc.

Definition at line 77 of file bmrf_arc.cxx.

bmrf_arc_sptr bmrf_arc::reverse  )  const
 

Produce a new arc which is the reverse of this one efficiently.

Definition at line 53 of file bmrf_arc.cxx.

void bmrf_arc::time_init  ) 
 

Compute the alpha range and intensity comparison.

Note:
vertices must be set

Definition at line 113 of file bmrf_arc.cxx.

int bmrf_arc::time_step  )  const
 

The change in time spanned by this arc.

Definition at line 87 of file bmrf_arc.cxx.

bmrf_node_sptr bmrf_arc::to  )  [inline]
 

Smart pointer to the node where this arc ends.

Definition at line 80 of file bmrf_arc.h.


Friends And Related Function Documentation

friend class bmrf_node [friend]
 

Definition at line 27 of file bmrf_arc.h.


Member Data Documentation

double bmrf_arc::avg_intensity_error_ [private]
 

Definition at line 94 of file bmrf_arc.h.

bmrf_node* bmrf_arc::from_ [private]
 

Definition at line 87 of file bmrf_arc.h.

double bmrf_arc::gamma_ [private]
 

Definition at line 93 of file bmrf_arc.h.

bmrf_gamma_func_sptr bmrf_arc::gamma_func_ [private]
 

Definition at line 97 of file bmrf_arc.h.

double bmrf_arc::induced_match_error_ [private]
 

Definition at line 95 of file bmrf_arc.h.

double bmrf_arc::inv_gamma_ [private]
 

Definition at line 93 of file bmrf_arc.h.

double bmrf_arc::max_alpha_ [private]
 

Definition at line 91 of file bmrf_arc.h.

double bmrf_arc::min_alpha_ [private]
 

Definition at line 91 of file bmrf_arc.h.

double bmrf_arc::probability_ [private]
 

Definition at line 90 of file bmrf_arc.h.

bmrf_node* bmrf_arc::to_ [private]
 

Definition at line 88 of file bmrf_arc.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 14:51:53 2008 for contrib/brl/bseg/bmrf by  doxygen 1.4.4