|
OpenGM
2.3.x
Discrete Graphical Model Library
|
MRFLIB MRFLIB inference algorithm class. More...
#include <mrflib.hxx>
Inheritance diagram for opengm::external::MRFLIB< GM >:
Collaboration diagram for opengm::external::MRFLIB< GM >:Classes | |
| struct | Parameter |
| Parameter. More... | |
Public Types | |
| typedef GM | GraphicalModelType |
| typedef opengm::Minimizer | AccumulationType |
| typedef visitors::VerboseVisitor< MRFLIB< GM > > | VerboseVisitorType |
| typedef visitors::EmptyVisitor< MRFLIB< GM > > | EmptyVisitorType |
| typedef visitors::TimingVisitor< MRFLIB< GM > > | TimingVisitorType |
| typedef size_t | VariableIndex |
Public Types inherited from opengm::Inference< GM, opengm::Minimizer > | |
| typedef GM | GraphicalModelType |
| typedef opengm::Minimizer | AccumulationType |
| typedef GraphicalModelType::LabelType | LabelType |
| typedef GraphicalModelType::IndexType | IndexType |
| typedef GraphicalModelType::ValueType | ValueType |
| typedef GraphicalModelType::OperatorType | OperatorType |
| typedef GraphicalModelType::FactorType | FactorType |
| typedef GraphicalModelType::IndependentFactorType | IndependentFactorType |
| typedef GraphicalModelType::FunctionIdentifier | FunctionIdentifier |
Public Member Functions | |
| MRFLIB (const GraphicalModelType &gm, const Parameter ¶=Parameter()) | |
| ~MRFLIB () | |
| std::string | name () const |
| const GraphicalModelType & | graphicalModel () const |
| template<class VISITOR > | |
| InferenceTermination | infer (VISITOR &visitor) |
| InferenceTermination | infer () |
| InferenceTermination | arg (std::vector< LabelType > &, const size_t &=1) const |
| GM::ValueType | bound () const |
| return a bound on the solution More... | |
| GM::ValueType | value () const |
| return the solution (value) More... | |
Public Member Functions inherited from opengm::Inference< GM, opengm::Minimizer > | |
| virtual | ~Inference () |
| virtual void | setStartingPoint (typename std::vector< LabelType >::const_iterator) |
| set initial labeling More... | |
| virtual InferenceTermination | arg (std::vector< LabelType > &, const size_t=1) const |
| output a solution More... | |
| virtual InferenceTermination | args (std::vector< std::vector< LabelType > > &) const |
| virtual InferenceTermination | marginal (const size_t, IndependentFactorType &) const |
| output a solution for a marginal for a specific variable More... | |
| virtual InferenceTermination | factorMarginal (const size_t, IndependentFactorType &) const |
| output a solution for a marginal for all variables connected to a factor More... | |
| InferenceTermination | constrainedOptimum (std::vector< IndexType > &, std::vector< LabelType > &, std::vector< LabelType > &) const |
| InferenceTermination | modeFromMarginal (std::vector< LabelType > &) const |
| InferenceTermination | modeFromFactorMarginal (std::vector< LabelType > &) const |
Public Attributes | |
| OPENGM_GM_TYPE_TYPEDEFS | |
Protected Member Functions | |
| void | generateEnergyView () |
| void | generateEnergyTables () |
| void | generateEnergyTL1 () |
| void | generateEnergyTL2 () |
| void | generateEnergyWeightedTable () |
| void | setD () |
| void | setV () |
| void | setWeightedTableWeights () |
| bool | hasSameLabelNumber () const |
| bool | sameEnergyTable () const |
| bool | symmetricEnergyTable () const |
| bool | valueCheck () const |
| void | generateFirstOrderFactorLookupTable_ () |
| void | generateSecondOrderFactorLookupTables_ () |
| ValueType | getT (IndexType factor, ValueType e) const |
| bool | sameT (ValueType T, ValueType e) const |
| void | setWeights () |
| bool | equalWeights () const |
| bool | truncatedAbsoluteDifferenceFactors () const |
| bool | truncatedSquaredDifferenceFactors () const |
| void | copyFactorValues () |
Static Protected Member Functions | |
| static mrfLib::MRF::CostVal | firstOrderFactorViewAccess (int pix, int i) |
| static mrfLib::MRF::CostVal | secondOrderFactorViewAccess (int pix1, int pix2, int i, int j) |
| static mrfLib::MRF::CostVal | firstOrderFactorTablesAccess (int pix, int i) |
| static mrfLib::MRF::CostVal | secondOrderFactorTablesAccess (int pix1, int pix2, int i, int j) |
Protected Attributes | |
| const GraphicalModelType & | gm_ |
| IndexType | sizeX_ |
| IndexType | sizeY_ |
| IndexType | numLabels_ |
| marray::Matrix< size_t > | grid_ |
| Parameter | parameter_ |
| mrfLib::MRF * | mrf_ |
| mrfLib::MRF::CostVal * | D_ |
| mrfLib::MRF::CostVal * | V_ |
| mrfLib::MRF::CostVal * | hCue_ |
| mrfLib::MRF::CostVal * | vCue_ |
| mrfLib::DataCost * | data_ |
| mrfLib::SmoothnessCost * | smooth_ |
| mrfLib::EnergyFunction * | energy_ |
| std::vector< std::vector< IndexType > > | firstOrderFactorLookupTable_ |
| std::vector< std::vector< IndexType > > | horizontalSecondOrderFactorLookupTable_ |
| std::vector< std::vector< IndexType > > | verticalSecondOrderFactorLookupTable_ |
| std::vector< mrfLib::MRF::CostVal > | firstOrderFactorValues |
| std::vector< mrfLib::MRF::CostVal > | secondOrderFactorValues |
Static Protected Attributes | |
| static MRFLIB< GM > * | mySelfView_ = NULL |
| static MRFLIB< GM > * | mySelfTables_ = NULL |
| static const IndexType | right_ = 0 |
| static const IndexType | down_ = 1 |
MRFLIB MRFLIB inference algorithm class.
Maximum factor order :2

Definition at line 36 of file mrflib.hxx.
| typedef opengm::Minimizer opengm::external::MRFLIB< GM >::AccumulationType |
Definition at line 39 of file mrflib.hxx.
| typedef visitors::EmptyVisitor<MRFLIB<GM> > opengm::external::MRFLIB< GM >::EmptyVisitorType |
Definition at line 42 of file mrflib.hxx.
| typedef GM opengm::external::MRFLIB< GM >::GraphicalModelType |
Definition at line 38 of file mrflib.hxx.
| typedef visitors::TimingVisitor<MRFLIB<GM> > opengm::external::MRFLIB< GM >::TimingVisitorType |
Definition at line 43 of file mrflib.hxx.
| typedef size_t opengm::external::MRFLIB< GM >::VariableIndex |
Definition at line 44 of file mrflib.hxx.
| typedef visitors::VerboseVisitor<MRFLIB<GM> > opengm::external::MRFLIB< GM >::VerboseVisitorType |
Definition at line 41 of file mrflib.hxx.
| opengm::external::MRFLIB< GM >::MRFLIB | ( | const GraphicalModelType & | gm, |
| const Parameter & | para = Parameter() |
||
| ) |
| opengm::external::MRFLIB< GM >::~MRFLIB | ( | ) |
Definition at line 236 of file mrflib.hxx.
|
inline |
Definition at line 331 of file mrflib.hxx.
|
inlinevirtual |
return a bound on the solution
Reimplemented from opengm::Inference< GM, opengm::Minimizer >.
Definition at line 345 of file mrflib.hxx.
Here is the call graph for this function:
|
inlineprotected |
Definition at line 840 of file mrflib.hxx.
|
inlineprotected |
Definition at line 820 of file mrflib.hxx.
|
inlinestaticprotected |
Definition at line 900 of file mrflib.hxx.
|
inlinestaticprotected |
Definition at line 680 of file mrflib.hxx.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Definition at line 637 of file mrflib.hxx.
|
inlineprotected |
Definition at line 651 of file mrflib.hxx.
|
inlineprotected |
Definition at line 750 of file mrflib.hxx.
|
inlinevirtual |
Implements opengm::Inference< GM, opengm::Minimizer >.
Definition at line 274 of file mrflib.hxx.
|
inlineprotected |
|
inline |
Definition at line 286 of file mrflib.hxx.
|
inlinevirtual |
Implements opengm::Inference< GM, opengm::Minimizer >.
Definition at line 279 of file mrflib.hxx.
|
inlinevirtual |
Implements opengm::Inference< GM, opengm::Minimizer >.
Definition at line 269 of file mrflib.hxx.
|
inlineprotected |
Definition at line 571 of file mrflib.hxx.
|
inlineprotected |
Definition at line 773 of file mrflib.hxx.
|
inlinestaticprotected |
Definition at line 905 of file mrflib.hxx.
|
inlinestaticprotected |
Definition at line 691 of file mrflib.hxx.
|
inlineprotected |
Definition at line 466 of file mrflib.hxx.
|
inlineprotected |
Definition at line 486 of file mrflib.hxx.
|
inlineprotected |
Definition at line 504 of file mrflib.hxx.
|
inlineprotected |
Definition at line 787 of file mrflib.hxx.
|
inlineprotected |
Definition at line 613 of file mrflib.hxx.
|
inlineprotected |
Definition at line 726 of file mrflib.hxx.
|
inlineprotected |
Definition at line 738 of file mrflib.hxx.
|
inlinevirtual |
return the solution (value)
Reimplemented from opengm::Inference< GM, opengm::Minimizer >.
Definition at line 354 of file mrflib.hxx.
|
inlineprotected |
Definition at line 625 of file mrflib.hxx.
|
protected |
Definition at line 87 of file mrflib.hxx.
|
protected |
Definition at line 91 of file mrflib.hxx.
|
staticprotected |
Definition at line 136 of file mrflib.hxx.
|
protected |
Definition at line 93 of file mrflib.hxx.
|
protected |
Definition at line 111 of file mrflib.hxx.
|
protected |
Definition at line 133 of file mrflib.hxx.
|
protected |
Definition at line 80 of file mrflib.hxx.
|
protected |
Definition at line 84 of file mrflib.hxx.
|
protected |
Definition at line 89 of file mrflib.hxx.
|
protected |
Definition at line 112 of file mrflib.hxx.
|
protected |
Definition at line 86 of file mrflib.hxx.
|
staticprotected |
Definition at line 132 of file mrflib.hxx.
|
staticprotected |
Definition at line 110 of file mrflib.hxx.
|
protected |
Definition at line 83 of file mrflib.hxx.
| opengm::external::MRFLIB< GM >::OPENGM_GM_TYPE_TYPEDEFS |
Definition at line 40 of file mrflib.hxx.
|
protected |
Definition at line 85 of file mrflib.hxx.
|
staticprotected |
Definition at line 135 of file mrflib.hxx.
|
protected |
Definition at line 134 of file mrflib.hxx.
|
protected |
Definition at line 81 of file mrflib.hxx.
|
protected |
Definition at line 82 of file mrflib.hxx.
|
protected |
Definition at line 92 of file mrflib.hxx.
|
protected |
Definition at line 88 of file mrflib.hxx.
|
protected |
Definition at line 90 of file mrflib.hxx.
|
protected |
Definition at line 113 of file mrflib.hxx.
1.8.9.1