opengm::MQPBO< GM, ACC > Class Template Reference
[Inference Algorithms]

[class mqpbo] Multilabel QPBO (MQPBO) Implements the algorithms described in i) Ivan Kovtun: Partial Optimal Labeling Search for a NP-Hard Subclass of (max, +) Problems. DAGM-Symposium 2003 (part. opt. for potts) ii) P. Kohli, A. Shekhovtsov, C. Rother, V. Kolmogorov, and P. Torr: On partial optimality in multi-label MRFs, ICML 2008 (MQPBO) iii) P. Swoboda, B. Savchynskyy, J.H. Kappes, and C. Schnörr : Partial Optimality via Iterative Pruning for the Potts Model, SSVM 2013 (MQPBO with permutation sampling) More...

#include <mqpbo.hxx>

Inheritance diagram for opengm::MQPBO< GM, ACC >:
Inheritance graph
[legend]
Collaboration diagram for opengm::MQPBO< GM, ACC >:
Collaboration graph
[legend]

List of all members.

Classes

class  Parameter

Public Types

enum  PermutationType { NONE, RANDOM, MINMARG }
typedef ACC AccumulationType
typedef GM GmType
typedef GM GraphicalModelType
typedef VerboseVisitor< MQPBO
< GM, ACC > > 
VerboseVisitorType
typedef EmptyVisitor< MQPBO
< GM, ACC > > 
EmptyVisitorType
typedef TimingVisitor< MQPBO
< GM, ACC > > 
TimingVisitorType
typedef ValueType GraphValueType

Public Member Functions

 MQPBO (const GmType &, const Parameter &=Parameter())
 [class mqpbo]
 ~MQPBO ()
std::string name () const
const GmTypegraphicalModel () const
InferenceTermination infer ()
void reset ()
 reset assumes that the structure of the graphical model has not changed
GM::ValueType bound () const
 return a bound on the solution
GM::ValueType value () const
 return the solution (value)
template<class VisitorType >
InferenceTermination infer (VisitorType &)
InferenceTermination testQuess (std::vector< LabelType > &guess)
InferenceTermination testPermutation (PermutationType permutationType)
void setStartingPoint (typename std::vector< LabelType >::const_iterator)
 set initial labeling
virtual InferenceTermination arg (std::vector< LabelType > &, const size_t=1) const
 output a solution
const std::vector
< opengm::Tribool > & 
partialOptimality (IndexType var) const
bool partialOptimality (IndexType var, LabelType &l) const
double optimalityV () const
double optimality () const

Public Attributes

 OPENGM_GM_TYPE_TYPEDEFS

Detailed Description

template<class GM, class ACC>
class opengm::MQPBO< GM, ACC >

[class mqpbo] Multilabel QPBO (MQPBO) Implements the algorithms described in i) Ivan Kovtun: Partial Optimal Labeling Search for a NP-Hard Subclass of (max, +) Problems. DAGM-Symposium 2003 (part. opt. for potts) ii) P. Kohli, A. Shekhovtsov, C. Rother, V. Kolmogorov, and P. Torr: On partial optimality in multi-label MRFs, ICML 2008 (MQPBO) iii) P. Swoboda, B. Savchynskyy, J.H. Kappes, and C. Schnörr : Partial Optimality via Iterative Pruning for the Potts Model, SSVM 2013 (MQPBO with permutation sampling)

Corresponding author: Joerg Hendrik Kappes

Definition at line 37 of file mqpbo.hxx.


Member Typedef Documentation

template<class GM, class ACC>
typedef ACC opengm::MQPBO< GM, ACC >::AccumulationType

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 40 of file mqpbo.hxx.

template<class GM, class ACC>
typedef EmptyVisitor<MQPBO<GM, ACC> > opengm::MQPBO< GM, ACC >::EmptyVisitorType

Definition at line 45 of file mqpbo.hxx.

template<class GM, class ACC>
typedef GM opengm::MQPBO< GM, ACC >::GmType

Definition at line 41 of file mqpbo.hxx.

template<class GM, class ACC>
typedef GM opengm::MQPBO< GM, ACC >::GraphicalModelType

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 42 of file mqpbo.hxx.

template<class GM, class ACC>
typedef ValueType opengm::MQPBO< GM, ACC >::GraphValueType

Definition at line 47 of file mqpbo.hxx.

template<class GM, class ACC>
typedef TimingVisitor<MQPBO<GM, ACC> > opengm::MQPBO< GM, ACC >::TimingVisitorType

Definition at line 46 of file mqpbo.hxx.

template<class GM, class ACC>
typedef VerboseVisitor<MQPBO<GM, ACC> > opengm::MQPBO< GM, ACC >::VerboseVisitorType

Definition at line 44 of file mqpbo.hxx.


Member Enumeration Documentation

template<class GM, class ACC>
enum opengm::MQPBO::PermutationType
Enumerator:
NONE 
RANDOM 
MINMARG 

Definition at line 49 of file mqpbo.hxx.


Constructor & Destructor Documentation

template<class GM , class ACC >
opengm::MQPBO< GM, ACC >::MQPBO ( const GmType gm,
const Parameter parameter = Parameter() 
) [inline]

[class mqpbo]

Definition at line 114 of file mqpbo.hxx.

template<class GM , class ACC >
opengm::MQPBO< GM, ACC >::~MQPBO (  )  [inline]

Definition at line 180 of file mqpbo.hxx.


Member Function Documentation

template<class GM , class ACC >
InferenceTermination opengm::MQPBO< GM, ACC >::arg ( std::vector< LabelType > &  arg,
const size_t  argIndex = 1 
) const [inline, virtual]

output a solution

Parameters:
[out] arg labeling
argIndex solution index (0=best, 1=second best, etc.)

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 933 of file mqpbo.hxx.

Here is the caller graph for this function:

template<class GM , class ACC >
GM::ValueType opengm::MQPBO< GM, ACC >::bound (  )  const [inline, virtual]

return a bound on the solution

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 918 of file mqpbo.hxx.

template<class GM , class ACC >
const MQPBO< GM, ACC >::GmType & opengm::MQPBO< GM, ACC >::graphicalModel (  )  const [inline, virtual]

Implements opengm::Inference< GM, ACC >.

Definition at line 215 of file mqpbo.hxx.

template<class GM , class ACC >
template<class VisitorType >
InferenceTermination opengm::MQPBO< GM, ACC >::infer ( VisitorType &  visitor  )  [inline]

Definition at line 795 of file mqpbo.hxx.

Here is the call graph for this function:

template<class GM , class ACC >
InferenceTermination opengm::MQPBO< GM, ACC >::infer (  )  [inline, virtual]

Implements opengm::Inference< GM, ACC >.

Definition at line 786 of file mqpbo.hxx.

template<class GM , class ACC >
std::string opengm::MQPBO< GM, ACC >::name (  )  const [inline, virtual]

Implements opengm::Inference< GM, ACC >.

Definition at line 208 of file mqpbo.hxx.

template<class GM , class ACC >
double opengm::MQPBO< GM, ACC >::optimality (  )  const [inline]

Definition at line 883 of file mqpbo.hxx.

template<class GM , class ACC >
double opengm::MQPBO< GM, ACC >::optimalityV (  )  const [inline]

Definition at line 901 of file mqpbo.hxx.

template<class GM, class ACC>
bool opengm::MQPBO< GM, ACC >::partialOptimality ( IndexType  var,
LabelType l 
) const [inline]

Definition at line 78 of file mqpbo.hxx.

template<class GM, class ACC>
const std::vector<opengm::Tribool>& opengm::MQPBO< GM, ACC >::partialOptimality ( IndexType  var  )  const [inline]

Definition at line 77 of file mqpbo.hxx.

template<class GM , class ACC >
void opengm::MQPBO< GM, ACC >::reset (  )  [inline]

reset assumes that the structure of the graphical model has not changed

TODO

Definition at line 190 of file mqpbo.hxx.

template<class GM, class ACC>
void opengm::MQPBO< GM, ACC >::setStartingPoint ( typename std::vector< LabelType >::const_iterator  begin  )  [virtual]

set initial labeling

Parameters:
begin iterator to the beginning of a sequence of labels

Reimplemented from opengm::Inference< GM, ACC >.

template<class GM , class ACC >
InferenceTermination opengm::MQPBO< GM, ACC >::testPermutation ( PermutationType  permutationType  )  [inline]

Definition at line 386 of file mqpbo.hxx.

template<class GM , class ACC >
InferenceTermination opengm::MQPBO< GM, ACC >::testQuess ( std::vector< LabelType > &  guess  )  [inline]

Definition at line 287 of file mqpbo.hxx.

template<class GM , class ACC >
GM::ValueType opengm::MQPBO< GM, ACC >::value (  )  const [inline, virtual]

return the solution (value)

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 924 of file mqpbo.hxx.

Here is the call graph for this function:


Member Data Documentation

template<class GM, class ACC>
opengm::MQPBO< GM, ACC >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 43 of file mqpbo.hxx.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Jun 17 16:31:12 2013 for OpenGM by  doxygen 1.6.3