#include <bmrf_network.h>
Inheritance diagram for bmrf_network:

Definition at line 30 of file bmrf_network.h.
Public Types | |
| typedef vcl_map< bmrf_epi_seg_sptr, bmrf_node_sptr > | seg_node_map |
| typedef vcl_map< int, seg_node_map > | frame_node_map |
| typedef bmrf_node::neighbor_type | neighbor_type |
Public Member Functions | |
| bmrf_network () | |
| Constructor. | |
| bmrf_network (bmrf_network const &n) | |
| Copy constructor. | |
| ~bmrf_network () | |
| Destructor. | |
| bool | add_node (const bmrf_node_sptr &node) |
| Adds a new to the network. | |
| bool | remove_node (bmrf_node_sptr node) |
| Deletes a node in the network. | |
| bool | add_arc (const bmrf_node_sptr &n1, const bmrf_node_sptr &n2, neighbor_type type) |
Add an arc between n1 and n2 of type type. | |
| bool | add_arc (const bmrf_arc_sptr &arc, neighbor_type type) |
Add an arc arc of type type. | |
| bool | remove_arc (const bmrf_node_sptr &n1, const bmrf_node_sptr &n2, neighbor_type type=bmrf_node::ALL) |
Add an arc between n1 and n2 of type type. | |
| bool | purge () |
| Remove all arcs to NULL nodes and node not found in this network. | |
| bmrf_node_sptr | seg_to_node (const bmrf_epi_seg_sptr &seg, int frame=-1) const |
| Look up the node corresponding to an epi-segment. | |
| int | num_frames () const |
| Returns the number of frames in the network. | |
| vcl_set< int > | frame_numbers () const |
| Returns the set of active frame numbers. | |
| int | size (int frame=-1) |
| Returns the number of nodes in the network. | |
| double | probability () |
| Returns the probability that the entire network is correct. | |
| void | prune_by_probability (double threshold, bool relative=false) |
Remove all nodes and arcs with probability less than threshold. | |
| void | prune_by_gamma (double min_gamma, double max_gamma) |
| Prune nodes with a mean gamma outside this range. | |
| void | prune_directed () |
| Prune directed arcs leaving the undirected subset of the network. | |
| void | set_epipole (const bmrf_epipole &epipole, int frame) |
Set the epipole for frame frame. | |
| const bmrf_epipole & | epipole (int frame) const |
Access the epipole for frame frame. | |
| seg_node_map::const_iterator | begin (int frame=-1) const |
Returns the beginning const iterator to the map of nodes in frame frame. | |
| seg_node_map::const_iterator | end (int frame=-1) const |
Returns the end const iterator to the map of nodes in frame frame. | |
| 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. | |
| short | version () const |
| Return IO version number;. | |
| void | print_summary (vcl_ostream &os) const |
| Print an ascii summary to the stream. | |
| depth_iterator | depth_begin (bmrf_node_sptr node) |
| Depth first search begin iterator. | |
| depth_iterator | depth_end () |
| Depth first search end iterator. | |
| breadth_iterator | breadth_begin (bmrf_node_sptr node) |
| Breadth first search begin iterator. | |
| breadth_iterator | breadth_end () |
| Breadth first search end iterator. | |
| void | ref () |
| void | unref () |
| int | get_references () const |
| bool | is_referenced () const |
Private Attributes | |
| seg_node_map | node_from_seg_ |
| The map from epi_seg pointers to nodes in the network. | |
| frame_node_map | nodes_from_frame_ |
| The map from frame number to list of nodes in that frame. | |
| vcl_vector< bmrf_epipole > | epipoles_ |
| The vector of epipoles (for each frame). | |
Classes | |
| class | breadth_iterator |
| class | depth_iterator |
| class | iterator |
|
|
Definition at line 34 of file bmrf_network.h. |
|
|
Definition at line 36 of file bmrf_network.h. |
|
|
Definition at line 33 of file bmrf_network.h. |
|
|
Constructor.
Definition at line 39 of file bmrf_network.h. |
|
|
Copy constructor.
Definition at line 42 of file bmrf_network.h. |
|
|
Destructor.
Definition at line 48 of file bmrf_network.h. |
|
||||||||||||
|
Add an arc
Definition at line 68 of file bmrf_network.cxx. |
|
||||||||||||||||
|
Add an arc between
Definition at line 46 of file bmrf_network.cxx. |
|
|
Adds a new to the network.
Definition at line 14 of file bmrf_network.cxx. |
|
|
Binary load self from stream.
Definition at line 335 of file bmrf_network.cxx. |
|
|
Binary save self to stream.
Definition at line 310 of file bmrf_network.cxx. |
|
|
Returns the beginning const iterator to the map of nodes in frame
Definition at line 282 of file bmrf_network.cxx. |
|
|
Breadth first search begin iterator.
Definition at line 208 of file bmrf_network.h. |
|
|
Breadth first search end iterator.
Definition at line 210 of file bmrf_network.h. |
|
|
Depth first search begin iterator.
Definition at line 203 of file bmrf_network.h. |
|
|
Depth first search end iterator.
Definition at line 205 of file bmrf_network.h. |
|
|
Returns the end const iterator to the map of nodes in frame
Definition at line 296 of file bmrf_network.cxx. |
|
|
Access the epipole for frame For now we assume that there is only one epipole for the entire sequence. This function should be update if this assumption changes. Definition at line 274 of file bmrf_network.cxx. |
|
|
Returns the set of active frame numbers.
Definition at line 153 of file bmrf_network.cxx. |
|
|
Returns the number of frames in the network.
Definition at line 144 of file bmrf_network.cxx. |
|
|
Print an ascii summary to the stream.
Definition at line 382 of file bmrf_network.cxx. |
|
|
Returns the probability that the entire network is correct.
Definition at line 176 of file bmrf_network.cxx. |
|
||||||||||||
|
Prune nodes with a mean gamma outside this range.
Definition at line 216 of file bmrf_network.cxx. |
|
||||||||||||
|
Remove all nodes and arcs with probability less than
Definition at line 193 of file bmrf_network.cxx. |
|
|
Prune directed arcs leaving the undirected subset of the network.
Definition at line 239 of file bmrf_network.cxx. |
|
|
Remove all arcs to NULL nodes and node not found in this network.
Definition at line 100 of file bmrf_network.cxx. |
|
||||||||||||||||
|
Add an arc between
Definition at line 91 of file bmrf_network.cxx. |
|
|
Deletes a node in the network.
Definition at line 28 of file bmrf_network.cxx. |
|
||||||||||||
|
Look up the node corresponding to an epi-segment.
Definition at line 121 of file bmrf_network.cxx. |
|
||||||||||||
|
Set the epipole for frame For now we assume that there is only one epipole for the entire sequence. This function should be update if this assumption changes. Definition at line 261 of file bmrf_network.cxx. |
|
|
Returns the number of nodes in the network.
\ note if the optional parameter Definition at line 165 of file bmrf_network.cxx. |
|
|
Return IO version number;.
Definition at line 390 of file bmrf_network.cxx. |
|
|
The vector of epipoles (for each frame).
Definition at line 138 of file bmrf_network.h. |
|
|
The map from epi_seg pointers to nodes in the network.
Definition at line 132 of file bmrf_network.h. |
|
|
The map from frame number to list of nodes in that frame.
Definition at line 135 of file bmrf_network.h. |
1.4.4