Stores the boundary of a region. More...
#include <vtol_extract_topology.h>
Public Types | |
typedef vbl_smart_ptr < vtol_extract_topology_edgel_chain > | edgel_chain_sptr |
Public Member Functions | |
void | push_back (edgel_chain_sptr chain) |
Add an edge to this region. | |
unsigned | size () const |
The number of edges in the boundary. | |
vdgl_edgel_chain_sptr const & | operator[] (unsigned i) const |
Extract segment i of the boundary one chain. | |
vtol_one_chain_sptr | make_one_chain () const |
Create a vtol_one_chain describing the boundary. | |
void | ref () |
void | unref () |
int | get_references () const |
bool | is_referenced () const |
Public Attributes | |
unsigned | i |
Location of a pixel inside the region. | |
unsigned | j |
Private Attributes | |
vcl_vector< edgel_chain_sptr > | list_ |
The list of boundary edges (which are edgel chains). |
Stores the boundary of a region.
This stores the one chain corresponding to a complete region boundary. It also stores a point completely inside that region. This point is used to perform containment checks between regions.
Definition at line 95 of file vtol_extract_topology.h.
typedef vbl_smart_ptr< vtol_extract_topology_edgel_chain > vtol_extract_topology_region_type::edgel_chain_sptr |
Definition at line 99 of file vtol_extract_topology.h.
vtol_one_chain_sptr vtol_extract_topology_region_type::make_one_chain | ( | ) | const |
Create a vtol_one_chain describing the boundary.
Definition at line 95 of file vtol_extract_topology.cxx.
vdgl_edgel_chain_sptr const & vtol_extract_topology_region_type::operator[] | ( | unsigned | i | ) | const |
Extract segment i of the boundary one chain.
Definition at line 84 of file vtol_extract_topology.cxx.
void vtol_extract_topology_region_type::push_back | ( | edgel_chain_sptr | chain | ) |
Add an edge to this region.
Definition at line 62 of file vtol_extract_topology.cxx.
unsigned vtol_extract_topology_region_type::size | ( | void | ) | const |
The number of edges in the boundary.
Definition at line 73 of file vtol_extract_topology.cxx.
unsigned vtol_extract_topology_region_type::i |
Location of a pixel inside the region.
Definition at line 118 of file vtol_extract_topology.h.
unsigned vtol_extract_topology_region_type::j |
Definition at line 118 of file vtol_extract_topology.h.
vcl_vector< edgel_chain_sptr > vtol_extract_topology_region_type::list_ [private] |
The list of boundary edges (which are edgel chains).
Definition at line 123 of file vtol_extract_topology.h.