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

#include <sdet_region_edge.h>

Inheritance diagram for sdet_region_edge:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 sdet_region_edge (vtol_edge_2d_sptr e)
 sdet_region_edge (sdet_region_edge const &e)
 ~sdet_region_edge ()
void Prop (sdet_region_edge_sptr const &re, unsigned int label, unsigned int max_label)
 Conditionally propagate the labels of a sdet_region_edge.
vtol_edge_2d_sptr get_edge () const
bool is_vertex () const
unsigned int NumLabels (unsigned int max_label) const
unsigned int GetLabel (unsigned int i, unsigned int max_label) const
void ref ()
void unref ()
int get_references () const
bool is_referenced () const

Protected Member Functions

bool SetNewLabel (unsigned int label)

Protected Attributes

vtol_edge_2d_sptr edge_
vcl_vector< unsigned int > labels_

Detailed Description

Definition at line 49 of file sdet_region_edge.h.


Constructor & Destructor Documentation

sdet_region_edge::sdet_region_edge ( vtol_edge_2d_sptr  e)

Definition at line 8 of file sdet_region_edge.cxx.

sdet_region_edge::sdet_region_edge ( sdet_region_edge const &  e) [inline]

Definition at line 54 of file sdet_region_edge.h.

sdet_region_edge::~sdet_region_edge ( )

Definition at line 13 of file sdet_region_edge.cxx.


Member Function Documentation

vtol_edge_2d_sptr sdet_region_edge::get_edge ( ) const [inline]

Definition at line 62 of file sdet_region_edge.h.

unsigned int sdet_region_edge::GetLabel ( unsigned int  i,
unsigned int  max_label 
) const [inline]

Definition at line 66 of file sdet_region_edge.h.

bool sdet_region_edge::is_vertex ( ) const

Definition at line 17 of file sdet_region_edge.cxx.

unsigned int sdet_region_edge::NumLabels ( unsigned int  max_label) const

Definition at line 30 of file sdet_region_edge.cxx.

void sdet_region_edge::Prop ( sdet_region_edge_sptr const &  re,
unsigned int  label,
unsigned int  max_label 
)

Conditionally propagate the labels of a sdet_region_edge.

In this approach we don't differentiate between Right and Left. Here we allow an unlimited number of labels to be assigned to an edge, which is necessary due to small regions which don't have proper closure but whose edges are on the boundary of larger legitimate regions.

Definition at line 50 of file sdet_region_edge.cxx.

bool sdet_region_edge::SetNewLabel ( unsigned int  label) [protected]

Definition at line 22 of file sdet_region_edge.cxx.


Member Data Documentation

Definition at line 74 of file sdet_region_edge.h.

vcl_vector<unsigned int> sdet_region_edge::labels_ [protected]

Definition at line 75 of file sdet_region_edge.h.


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