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

[class reducedinference] Reduced Inference Implementation of the reduction techniques proposed in J.H. Kappes, M. Speth, G. Reinelt, and C. Schnörr: Towards Efficient and Exact MAP-Inference for Large Scale Discrete Computer Vision Problems via Combinatorial Optimization, CVPR 2013 More...

#include <reducedinference.hxx>

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

List of all members.

Classes

class  Parameter

Public Types

typedef ACC AccumulationType
typedef GM GmType
typedef GM GraphicalModelType
typedef INF InfType
typedef VerboseVisitor
< ReducedInference< GM, ACC,
INF > > 
VerboseVisitorType
typedef EmptyVisitor
< ReducedInference< GM, ACC,
INF > > 
EmptyVisitorType
typedef TimingVisitor
< ReducedInference< GM, ACC,
INF > > 
TimingVisitorType
typedef ReducedInferenceHelper
< GM >::InfGmType 
GM2
typedef external::QPBO< GM > QPBO
typedef disjoint_set< IndexTypeSet
typedef
opengm::DynamicProgramming
< GM2, AccumulationType
dynP
typedef modelTrees< GM2MT

Public Member Functions

 ReducedInference (const GmType &, const Parameter &=Parameter())
 [class reducedinference]
std::string name () const
const GmTypegraphicalModel () const
InferenceTermination infer ()
GM::ValueType bound () const
 return a bound on the solution
template<class VisitorType >
InferenceTermination infer (VisitorType &)
virtual InferenceTermination arg (std::vector< LabelType > &, const size_t=1) const
 output a solution
GM::ValueType value () const
 return the solution (value)

Public Attributes

 OPENGM_GM_TYPE_TYPEDEFS

Detailed Description

template<class GM, class ACC, class INF>
class opengm::ReducedInference< GM, ACC, INF >

[class reducedinference] Reduced Inference Implementation of the reduction techniques proposed in J.H. Kappes, M. Speth, G. Reinelt, and C. Schnörr: Towards Efficient and Exact MAP-Inference for Large Scale Discrete Computer Vision Problems via Combinatorial Optimization, CVPR 2013

it provides: * modelreduction by partial optimality * seperate optimization of independent subparts of the objective * preoptimization of acyclic subproblems (only second order so far)

it requires: * external-qpbo

Parts of this code was implemented during the bachelor thesis of Jan Kuske TODO: Code is still not optimized and has to be refactored!

Corresponding author: Jörg Hendrik Kappes

Definition at line 73 of file reducedinference.hxx.


Member Typedef Documentation

template<class GM, class ACC, class INF>
typedef ACC opengm::ReducedInference< GM, ACC, INF >::AccumulationType

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

Definition at line 76 of file reducedinference.hxx.

template<class GM, class ACC, class INF>
typedef opengm::DynamicProgramming<GM2,AccumulationType> opengm::ReducedInference< GM, ACC, INF >::dynP

Definition at line 89 of file reducedinference.hxx.

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

Definition at line 82 of file reducedinference.hxx.

template<class GM, class ACC, class INF>
typedef ReducedInferenceHelper<GM>::InfGmType opengm::ReducedInference< GM, ACC, INF >::GM2

Definition at line 84 of file reducedinference.hxx.

template<class GM, class ACC, class INF>
typedef GM opengm::ReducedInference< GM, ACC, INF >::GmType

Definition at line 77 of file reducedinference.hxx.

template<class GM, class ACC, class INF>
typedef GM opengm::ReducedInference< GM, ACC, INF >::GraphicalModelType

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

Definition at line 78 of file reducedinference.hxx.

template<class GM, class ACC, class INF>
typedef INF opengm::ReducedInference< GM, ACC, INF >::InfType

Definition at line 79 of file reducedinference.hxx.

template<class GM, class ACC, class INF>
typedef modelTrees<GM2> opengm::ReducedInference< GM, ACC, INF >::MT

Definition at line 90 of file reducedinference.hxx.

template<class GM, class ACC, class INF>
typedef external::QPBO<GM> opengm::ReducedInference< GM, ACC, INF >::QPBO

Definition at line 85 of file reducedinference.hxx.

template<class GM, class ACC, class INF>
typedef disjoint_set<IndexType> opengm::ReducedInference< GM, ACC, INF >::Set

Definition at line 88 of file reducedinference.hxx.

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

Definition at line 83 of file reducedinference.hxx.

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

Definition at line 81 of file reducedinference.hxx.


Constructor & Destructor Documentation

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

[class reducedinference]

Definition at line 141 of file reducedinference.hxx.


Member Function Documentation

template<class GM , class ACC , class INF >
InferenceTermination opengm::ReducedInference< GM, ACC, INF >::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 974 of file reducedinference.hxx.

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

return a bound on the solution

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

Definition at line 962 of file reducedinference.hxx.

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

Implements opengm::Inference< GM, ACC >.

Definition at line 181 of file reducedinference.hxx.

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

Definition at line 198 of file reducedinference.hxx.

Here is the call graph for this function:

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

Implements opengm::Inference< GM, ACC >.

Definition at line 188 of file reducedinference.hxx.

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

Implements opengm::Inference< GM, ACC >.

Definition at line 174 of file reducedinference.hxx.

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

return the solution (value)

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

Definition at line 967 of file reducedinference.hxx.


Member Data Documentation

template<class GM, class ACC, class INF>
opengm::ReducedInference< GM, ACC, INF >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 80 of file reducedinference.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