OpenGM  2.3.x
Discrete Graphical Model Library
Public Types | Public Member Functions | List of all members
opengm::MinSTCutBoost< NType, VType, mfalg > Class Template Reference

Boost solvers for the min st-cut framework GraphCut. More...

#include <minstcutboost.hxx>

+ Collaboration diagram for opengm::MinSTCutBoost< NType, VType, mfalg >:

Public Types

typedef NType node_type
 
typedef VType ValueType
 
typedef boost::vecS OutEdgeList
 
typedef boost::vecS VertexList
 
typedef boost::adjacency_list_traits< OutEdgeList, VertexList, boost::directedS > graph_traits
 
typedef graph_traits::edge_descriptor edge_descriptor
 
typedef graph_traits::vertex_descriptor vertex_descriptor
 
typedef boost::adjacency_list< OutEdgeList, VertexList, boost::directedS, size_t, Edge > graph_type
 
typedef boost::graph_traits< graph_type >::edge_iterator edge_iterator
 
typedef boost::graph_traits< graph_type >::out_edge_iterator out_edge_iterator
 

Public Member Functions

 MinSTCutBoost ()
 
 MinSTCutBoost (size_t numberOfNodes, size_t numberOfEdges)
 
void addEdge (node_type, node_type, ValueType)
 
void calculateCut (std::vector< bool > &)
 

Detailed Description

template<class NType, class VType, BoostMaxFlowAlgorithm mfalg>
class opengm::MinSTCutBoost< NType, VType, mfalg >

Boost solvers for the min st-cut framework GraphCut.

Definition at line 31 of file minstcutboost.hxx.

Member Typedef Documentation

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
typedef graph_traits::edge_descriptor opengm::MinSTCutBoost< NType, VType, mfalg >::edge_descriptor

Definition at line 39 of file minstcutboost.hxx.

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
typedef boost::graph_traits<graph_type>::edge_iterator opengm::MinSTCutBoost< NType, VType, mfalg >::edge_iterator

Definition at line 53 of file minstcutboost.hxx.

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
typedef boost::adjacency_list_traits<OutEdgeList, VertexList, boost::directedS> opengm::MinSTCutBoost< NType, VType, mfalg >::graph_traits

Definition at line 38 of file minstcutboost.hxx.

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
typedef boost::adjacency_list<OutEdgeList, VertexList, boost::directedS, size_t, Edge> opengm::MinSTCutBoost< NType, VType, mfalg >::graph_type

Definition at line 52 of file minstcutboost.hxx.

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
typedef NType opengm::MinSTCutBoost< NType, VType, mfalg >::node_type

Definition at line 34 of file minstcutboost.hxx.

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
typedef boost::graph_traits<graph_type>::out_edge_iterator opengm::MinSTCutBoost< NType, VType, mfalg >::out_edge_iterator

Definition at line 54 of file minstcutboost.hxx.

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
typedef boost::vecS opengm::MinSTCutBoost< NType, VType, mfalg >::OutEdgeList

Definition at line 36 of file minstcutboost.hxx.

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
typedef VType opengm::MinSTCutBoost< NType, VType, mfalg >::ValueType

Definition at line 35 of file minstcutboost.hxx.

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
typedef graph_traits::vertex_descriptor opengm::MinSTCutBoost< NType, VType, mfalg >::vertex_descriptor

Definition at line 40 of file minstcutboost.hxx.

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
typedef boost::vecS opengm::MinSTCutBoost< NType, VType, mfalg >::VertexList

Definition at line 37 of file minstcutboost.hxx.

Constructor & Destructor Documentation

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
opengm::MinSTCutBoost< NType, VType, mfalg >::MinSTCutBoost ( )

Definition at line 76 of file minstcutboost.hxx.

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
opengm::MinSTCutBoost< NType, VType, mfalg >::MinSTCutBoost ( size_t  numberOfNodes,
size_t  numberOfEdges 
)

Definition at line 82 of file minstcutboost.hxx.

Member Function Documentation

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
void opengm::MinSTCutBoost< NType, VType, mfalg >::addEdge ( node_type  n1,
node_type  n2,
ValueType  cost 
)

Definition at line 90 of file minstcutboost.hxx.

template<class NType , class VType , BoostMaxFlowAlgorithm mfalg>
void opengm::MinSTCutBoost< NType, VType, mfalg >::calculateCut ( std::vector< bool > &  segmentation)

Definition at line 103 of file minstcutboost.hxx.