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

Iterated Conditional Modes Algorithm

J. E. Besag, "On the Statistical Analysis of Dirty Pictures", Journal of the Royal Statistical Society, Series B 48(3):259-302, 1986. More...

#include <icm.hxx>

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

List of all members.

Classes

class  Parameter

Public Types

enum  MoveType { SINGLE_VARIABLE = 0, FACTOR = 1 }
typedef ACC AccumulationType
typedef GM GraphicalModelType
typedef Movemaker
< GraphicalModelType
MovemakerType
typedef VerboseVisitor< ICM
< GM, ACC > > 
VerboseVisitorType
typedef EmptyVisitor< ICM< GM,
ACC > > 
EmptyVisitorType
typedef TimingVisitor< ICM< GM,
ACC > > 
TimingVisitorType

Public Member Functions

 ICM (const GraphicalModelType &)
 ICM (const GraphicalModelType &, const Parameter &)
std::string name () const
const GraphicalModelTypegraphicalModel () const
InferenceTermination infer ()
void reset ()
template<class VisitorType >
InferenceTermination infer (VisitorType &)
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
size_t currentMoveType () const

Public Attributes

 OPENGM_GM_TYPE_TYPEDEFS

Detailed Description

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

Iterated Conditional Modes Algorithm

J. E. Besag, "On the Statistical Analysis of Dirty Pictures", Journal of the Royal Statistical Society, Series B 48(3):259-302, 1986.

Examples:

inference_types.cxx, and quick_start.cxx.

Definition at line 21 of file icm.hxx.


Member Typedef Documentation

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

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

Definition at line 28 of file icm.hxx.

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

Definition at line 33 of file icm.hxx.

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

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

Definition at line 29 of file icm.hxx.

template<class GM, class ACC>
typedef Movemaker<GraphicalModelType> opengm::ICM< GM, ACC >::MovemakerType

Definition at line 31 of file icm.hxx.

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

Definition at line 34 of file icm.hxx.

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

Definition at line 32 of file icm.hxx.


Member Enumeration Documentation

template<class GM, class ACC>
enum opengm::ICM::MoveType
Enumerator:
SINGLE_VARIABLE 
FACTOR 

Definition at line 24 of file icm.hxx.


Constructor & Destructor Documentation

template<class GM , class ACC >
opengm::ICM< GM, ACC >::ICM ( const GraphicalModelType gm  )  [inline]

Definition at line 93 of file icm.hxx.

template<class GM , class ACC >
opengm::ICM< GM, ACC >::ICM ( const GraphicalModelType gm,
const Parameter parameter 
) [inline]

Definition at line 104 of file icm.hxx.


Member Function Documentation

template<class GM , class ACC >
InferenceTermination opengm::ICM< 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 248 of file icm.hxx.

template<class GM , class ACC >
size_t opengm::ICM< GM, ACC >::currentMoveType (  )  const [inline]

Definition at line 86 of file icm.hxx.

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

Implements opengm::Inference< GM, ACC >.

Definition at line 154 of file icm.hxx.

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

Definition at line 171 of file icm.hxx.

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

Implements opengm::Inference< GM, ACC >.

Definition at line 161 of file icm.hxx.

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

Implements opengm::Inference< GM, ACC >.

Definition at line 147 of file icm.hxx.

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

Definition at line 123 of file icm.hxx.

Here is the call graph for this function:

template<class GM, class ACC>
void opengm::ICM< 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 >.


Member Data Documentation

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

Definition at line 30 of file icm.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