|
OpenGM
2.3.x
Discrete Graphical Model Library
|
FastPD FastPD inference algorithm class. More...
#include <fastPD.hxx>
Inheritance diagram for opengm::external::FastPD< GM >:
Collaboration diagram for opengm::external::FastPD< GM >:Classes | |
| struct | Parameter |
| Parameter. More... | |
Public Types | |
| typedef GM | GraphicalModelType |
| typedef opengm::Minimizer | AccumulationType |
| typedef visitors::VerboseVisitor< FastPD< GM > > | VerboseVisitorType |
| typedef visitors::EmptyVisitor< FastPD< GM > > | EmptyVisitorType |
| typedef visitors::TimingVisitor< FastPD< GM > > | TimingVisitorType |
| typedef LPReparametrizer< GM, opengm::Minimizer > | ReparametrizerType |
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 | |
| FastPD (const GraphicalModelType &gm, const Parameter ¶=Parameter()) | |
| ~FastPD () | |
| 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... | |
| ReparametrizerType * | getReparametrizer (const typename ReparametrizerType::Parameter ¶ms=typename ReparametrizerType::Parameter()) const |
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 | |
| bool | sameNumberOfLabels () const |
| void | setLabelCosts () |
| void | getNumPairs () |
| void | setPairs () |
| void | setDistance () |
| void | setWeights () |
| bool | sameEnergyTable () |
Protected Attributes | |
| const GraphicalModelType & | gm_ |
| Parameter | parameter_ |
| fastPDLib::CV_Fast_PD * | pdInference_ |
| ValueType | value_ |
| ValueType | lowerBound_ |
| fastPDLib::CV_Fast_PD::Real * | labelCosts_ |
| int | numPairs_ |
| int * | pairs_ |
| fastPDLib::CV_Fast_PD::Real * | distance_ |
| fastPDLib::CV_Fast_PD::Real * | weights_ |
FastPD FastPD inference algorithm class.
Maximum factor order : ?
Definition at line 29 of file fastPD.hxx.
| typedef opengm::Minimizer opengm::external::FastPD< GM >::AccumulationType |
Definition at line 32 of file fastPD.hxx.
| typedef visitors::EmptyVisitor<FastPD<GM> > opengm::external::FastPD< GM >::EmptyVisitorType |
Definition at line 35 of file fastPD.hxx.
| typedef GM opengm::external::FastPD< GM >::GraphicalModelType |
Definition at line 31 of file fastPD.hxx.
| typedef LPReparametrizer<GM,opengm::Minimizer> opengm::external::FastPD< GM >::ReparametrizerType |
Definition at line 61 of file fastPD.hxx.
| typedef visitors::TimingVisitor<FastPD<GM> > opengm::external::FastPD< GM >::TimingVisitorType |
Definition at line 36 of file fastPD.hxx.
| typedef visitors::VerboseVisitor<FastPD<GM> > opengm::external::FastPD< GM >::VerboseVisitorType |
Definition at line 34 of file fastPD.hxx.
| opengm::external::FastPD< GM >::FastPD | ( | const GraphicalModelType & | gm, |
| const Parameter & | para = Parameter() |
||
| ) |
| opengm::external::FastPD< GM >::~FastPD | ( | ) |
Definition at line 120 of file fastPD.hxx.
|
inline |
Definition at line 171 of file fastPD.hxx.
|
virtual |
return a bound on the solution
Reimplemented from opengm::Inference< GM, opengm::Minimizer >.
Definition at line 188 of file fastPD.hxx.
|
inlineprotected |
|
inline |
|
inlinevirtual |
Implements opengm::Inference< GM, opengm::Minimizer >.
Definition at line 144 of file fastPD.hxx.
|
inline |
Definition at line 156 of file fastPD.hxx.
|
inlinevirtual |
Implements opengm::Inference< GM, opengm::Minimizer >.
Definition at line 149 of file fastPD.hxx.
|
inlinevirtual |
Implements opengm::Inference< GM, opengm::Minimizer >.
Definition at line 139 of file fastPD.hxx.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlinevirtual |
return the solution (value)
Reimplemented from opengm::Inference< GM, opengm::Minimizer >.
Definition at line 245 of file fastPD.hxx.
|
protected |
Definition at line 74 of file fastPD.hxx.
|
protected |
Definition at line 65 of file fastPD.hxx.
|
protected |
Definition at line 71 of file fastPD.hxx.
|
protected |
Definition at line 69 of file fastPD.hxx.
|
protected |
Definition at line 72 of file fastPD.hxx.
| opengm::external::FastPD< GM >::OPENGM_GM_TYPE_TYPEDEFS |
Definition at line 33 of file fastPD.hxx.
|
protected |
Definition at line 73 of file fastPD.hxx.
|
protected |
Definition at line 66 of file fastPD.hxx.
|
protected |
Definition at line 67 of file fastPD.hxx.
|
protected |
Definition at line 68 of file fastPD.hxx.
|
protected |
Definition at line 75 of file fastPD.hxx.
1.8.9.1