Direct Graphical Models  v.1.7.0
DirectGraphicalModels::CInferDense Class Reference

Dense Inference for Dense CRF. More...

#include <InferDense.h>

Inheritance diagram for DirectGraphicalModels::CInferDense:
Collaboration diagram for DirectGraphicalModels::CInferDense:

Public Member Functions

 CInferDense (CGraphDense &graph)
 Constructor. More...
 
virtual ~CInferDense (void)=default
 
virtual void infer (unsigned int nIt=1)
 Inference. More...
 
- Public Member Functions inherited from DirectGraphicalModels::CInfer
 CInfer (CGraph &graph)
 Constructor. More...
 
 CInfer (const CInfer &)=delete
 
virtual ~CInfer ()=default
 
const CInferoperator= (const CInfer &)=delete
 
vec_byte_t decode (unsigned int nIt=0, Mat &lossMatrix=EmptyMat)
 Approximate decoding. More...
 
vec_float_t getConfidence (void) const
 Returns the confidence of the perdiction. More...
 
vec_float_t getPotentials (byte state) const
 Returns the potnetials for the selected state (class) More...
 

Protected Member Functions

CGraphDensegetGraphDense (void) const
 Returns the dense graph. More...
 
- Protected Member Functions inherited from DirectGraphicalModels::CInfer
CGraphgetGraph (void) const
 Returns the reference to the graph. More...
 

Detailed Description

Dense Inference for Dense CRF.

The implementation is based on Efficient Inference in Fully Connected CRFs with Gaussian Edge Potentials paper.

Author
Sergey G. Kosov, serge.nosp@m.y.ko.nosp@m.sov@p.nosp@m.roje.nosp@m.ct-10.nosp@m..de

Definition at line 18 of file InferDense.h.

Constructor & Destructor Documentation

◆ CInferDense()

DirectGraphicalModels::CInferDense::CInferDense ( CGraphDense graph)
inline

Constructor.

Parameters
graphThe graph

Definition at line 25 of file InferDense.h.

◆ ~CInferDense()

virtual DirectGraphicalModels::CInferDense::~CInferDense ( void  )
virtualdefault

Member Function Documentation

◆ getGraphDense()

CGraphDense& DirectGraphicalModels::CInferDense::getGraphDense ( void  ) const
inlineprotected

Returns the dense graph.

Returns
The dense graph

Definition at line 36 of file InferDense.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ infer()

void DirectGraphicalModels::CInferDense::infer ( unsigned int  nIt = 1)
virtual

Inference.

This function estimates the marginal potentials for each graph node, and stores them as node potentials

This function modifies Node::Pot containers of graph nodes

Parameters
nItNumber of iterations
Note
This function must not to be linear, i.e. \( infer(\alpha\times N)\not\equiv\alpha\times infer(N) \)
This function substitutes the graph nodes' potentials with estimated marginal potentials

Implements DirectGraphicalModels::CInfer.

Definition at line 38 of file InferDense.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: