|
OpenGM
2.3.x
Discrete Graphical Model Library
|
#include <trws_subproblemsolver.hxx>
Inheritance diagram for opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >:
Collaboration diagram for opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >:Public Types | |
| typedef GM | GMType |
| typedef ACC | ACCType |
| typedef GM::ValueType | ValueType |
| typedef GM::IndexType | IndexType |
| typedef GM::LabelType | LabelType |
| typedef InputIterator | InputIteratorType |
| typedef SequenceStorage< GM > | Storage |
| typedef Storage::IndexList | IndexList |
| typedef Storage::UnaryFactor | UnaryFactor |
| typedef Storage::MoveDirection | MoveDirection |
| typedef std::vector< IndexList > | IndexTable |
| typedef FunctionParameters< GM > | FactorProperties |
| typedef UnaryFactor::const_iterator | ConstIterator |
| typedef GM::FactorType | Factor |
| typedef std::pair< typename UnaryFactor::const_iterator, typename UnaryFactor::const_iterator > | const_iterators_pair |
Public Member Functions | |
| DynamicProgramming (Storage &storage, const FactorProperties &factorProperties, bool fastComputations=true) | |
| virtual | ~DynamicProgramming () |
| void | InitMove () |
| void | InitMove (MoveDirection movedirection) |
| virtual void | InitReverseMove () |
| virtual void | Move () |
| >initializes move, which is reverse to the current one//TODO: remove virtual ? More... | |
| virtual void | PushBack () |
| virtual void | MoveBack () |
| const_iterators_pair | GetMarginals () const |
| const_iterators_pair | GetMarginals (IndexType indx) const |
| ValueType | GetObjectiveValue () const |
| virtual ValueType | ComputeObjectiveValue ()=0 |
| virtual void | IncreaseUnaryWeights (InputIteratorType begin, InputIteratorType end) |
| virtual void | FinalizeMove () |
| LabelType | numOfLabels () const |
| virtual void | UpdateMarginals () |
| virtual IndexType | getNextPWId () const |
More... | |
| virtual IndexType | getPrevPWId () const |
More... | |
| MoveDirection | getMoveDirection () const |
More... | |
| IndexType | size () const |
| template<class ITERATOR > | |
| ValueType | evaluate (ITERATOR labeling) |
| void | SetFastComputation (bool fc) |
Static Public Attributes | |
| static const IndexType | NaN =std::numeric_limits<IndexType>::max() |
Protected Member Functions | |
| void | _PottsUnaryTransform (LabelType newSize, const typename FactorProperties::ParameterStorageType ¶ms) |
| void | _InitReverseMoveBack () |
| void | _InitMove (ValueType rho, MoveDirection movedirection) |
| >initializes move, which is reverse to the current one More... | |
| virtual void | _Push () |
| void | _core_InitMoves (ValueType rho, MoveDirection movedirection) |
| void | _PushMessagesToFactor () |
| void | _ClearMessages (UnaryFactor *pbuffer=0) |
| virtual void | _makeLocalCopyOfPWFactor (LabelType trgsize) |
| void | _SumUpBufferToMarginals () |
| virtual void | _BackUpForwardMarginals () |
| virtual void | _InitCurrentUnaryBuffer (IndexType index) |
| IndexType | _core_next (IndexType begin, MoveDirection dir) const |
| IndexType | _next (IndexType begin) const |
| IndexType | _previous (IndexType begin) const |
| IndexType | _nextPWIndex () const |
Definition at line 178 of file trws_subproblemsolver.hxx.
| typedef ACC opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::ACCType |
Definition at line 182 of file trws_subproblemsolver.hxx.
| typedef std::pair<typename UnaryFactor::const_iterator,typename UnaryFactor::const_iterator> opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::const_iterators_pair |
Definition at line 196 of file trws_subproblemsolver.hxx.
| typedef UnaryFactor::const_iterator opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::ConstIterator |
Definition at line 194 of file trws_subproblemsolver.hxx.
| typedef GM::FactorType opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::Factor |
Definition at line 195 of file trws_subproblemsolver.hxx.
| typedef FunctionParameters<GM> opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::FactorProperties |
Definition at line 193 of file trws_subproblemsolver.hxx.
| typedef GM opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::GMType |
Definition at line 181 of file trws_subproblemsolver.hxx.
| typedef Storage::IndexList opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::IndexList |
Definition at line 189 of file trws_subproblemsolver.hxx.
| typedef std::vector<IndexList> opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::IndexTable |
Definition at line 192 of file trws_subproblemsolver.hxx.
| typedef GM::IndexType opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::IndexType |
Definition at line 184 of file trws_subproblemsolver.hxx.
| typedef InputIterator opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::InputIteratorType |
Definition at line 187 of file trws_subproblemsolver.hxx.
| typedef GM::LabelType opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::LabelType |
Definition at line 185 of file trws_subproblemsolver.hxx.
| typedef Storage::MoveDirection opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::MoveDirection |
Definition at line 191 of file trws_subproblemsolver.hxx.
| typedef SequenceStorage<GM> opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::Storage |
Definition at line 188 of file trws_subproblemsolver.hxx.
| typedef Storage::UnaryFactor opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::UnaryFactor |
Definition at line 190 of file trws_subproblemsolver.hxx.
| typedef GM::ValueType opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::ValueType |
Definition at line 183 of file trws_subproblemsolver.hxx.
| opengm::trws_base::DynamicProgramming< GM, ACC, InputIterator >::DynamicProgramming | ( | Storage & | storage, |
| const FactorProperties & | factorProperties, | ||
| bool | fastComputations = true |
||
| ) |
|
inlinevirtual |
Definition at line 203 of file trws_subproblemsolver.hxx.
|
inlineprotectedvirtual |
Definition at line 278 of file trws_subproblemsolver.hxx.
|
protected |
|
protected |
Definition at line 873 of file trws_subproblemsolver.hxx.
Here is the caller graph for this function:
|
protected |
Definition at line 663 of file trws_subproblemsolver.hxx.
|
protectedvirtual |
Reimplemented in opengm::trws_base::SumProdSolver< GM, ACC, InputIterator >, and opengm::trws_base::SumProdSolver< GM, ACC, std::vector< GM::ValueType >::const_iterator >.
Definition at line 737 of file trws_subproblemsolver.hxx.
|
protected |
>initializes move, which is reverse to the current one
Definition at line 888 of file trws_subproblemsolver.hxx.
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 270 of file trws_subproblemsolver.hxx.
|
protectedvirtual |
Reimplemented in opengm::trws_base::SumProdSolver< GM, ACC, InputIterator >, and opengm::trws_base::SumProdSolver< GM, ACC, std::vector< GM::ValueType >::const_iterator >.
Definition at line 706 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 679 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 696 of file trws_subproblemsolver.hxx.
|
protected |
if anti-Potts model
if anti-Potts model
Definition at line 405 of file trws_subproblemsolver.hxx.
Here is the call graph for this function:
|
protected |
Definition at line 686 of file trws_subproblemsolver.hxx.
|
protectedvirtual |
Reimplemented in opengm::trws_base::SumProdSolver< GM, ACC, InputIterator >, opengm::trws_base::SumProdSolver< GM, ACC, std::vector< GM::ValueType >::const_iterator >, opengm::trws_base::MaxSumSolver< GM, ACC, InputIterator >, and opengm::trws_base::MaxSumSolver< GM, ACC, std::vector< GM::ValueType >::const_iterator >.
Definition at line 800 of file trws_subproblemsolver.hxx.
|
protected |
|
protected |
Definition at line 817 of file trws_subproblemsolver.hxx.
|
pure virtual |
Implemented in opengm::trws_base::SumProdSolver< GM, ACC, InputIterator >, opengm::trws_base::SumProdSolver< GM, ACC, std::vector< GM::ValueType >::const_iterator >, opengm::trws_base::MaxSumSolver< GM, ACC, InputIterator >, and opengm::trws_base::MaxSumSolver< GM, ACC, std::vector< GM::ValueType >::const_iterator >.
|
inline |
Definition at line 256 of file trws_subproblemsolver.hxx.
|
virtual |
Reimplemented in opengm::trws_base::MaxSumSolver< GM, ACC, InputIterator >, and opengm::trws_base::MaxSumSolver< GM, ACC, std::vector< GM::ValueType >::const_iterator >.
Definition at line 896 of file trws_subproblemsolver.hxx.
|
inline |
Returns NON-normalized marginals ...(logSumProd or maxSum marginals)
Definition at line 226 of file trws_subproblemsolver.hxx.
Here is the caller graph for this function:
|
inline |
Definition at line 227 of file trws_subproblemsolver.hxx.
|
inline |
returns an external (_gm[.]) pairwise index, which is in front of the current variable. For the first variable this::NaN is returned
Definition at line 253 of file trws_subproblemsolver.hxx.
|
virtual |
updates marginals in the current node so, that they correspond to the forward (backward) accumulated probabilities of labels
Definition at line 926 of file trws_subproblemsolver.hxx.
|
inline |
Definition at line 229 of file trws_subproblemsolver.hxx.
Here is the caller graph for this function:
|
virtual |
returns an external (_gm[.]) pairwise index, which follows the current variable. For the last variable this::NaN is returned
Definition at line 914 of file trws_subproblemsolver.hxx.
|
virtual |
|
inline |
Inference: usage: InitMove(rho);//once initialize smoothing value
then
Move();/MoveBack(); parent::_moveDirection or
PushBack();....PushBack();FinalizeMove();
Definition at line 217 of file trws_subproblemsolver.hxx.
Here is the caller graph for this function:
|
inline |
Definition at line 218 of file trws_subproblemsolver.hxx.
|
inlinevirtual |
Definition at line 219 of file trws_subproblemsolver.hxx.
|
virtual |
>initializes move, which is reverse to the current one//TODO: remove virtual ?
Definition at line 826 of file trws_subproblemsolver.hxx.
Here is the caller graph for this function:
|
virtual |
performs size() steps with PushBack();
Definition at line 863 of file trws_subproblemsolver.hxx.
|
inline |
Returns number of labels in the current node
Definition at line 247 of file trws_subproblemsolver.hxx.
|
virtual |
performs a single step of the move and sums up corresponding fw-bk marginals
Definition at line 848 of file trws_subproblemsolver.hxx.
|
inline |
Tests
Definition at line 264 of file trws_subproblemsolver.hxx.
|
inline |
Definition at line 254 of file trws_subproblemsolver.hxx.
|
virtual |
Definition at line 811 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 295 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 298 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 299 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 300 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 288 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 286 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 290 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 294 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 292 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 293 of file trws_subproblemsolver.hxx.
|
mutableprotected |
Definition at line 303 of file trws_subproblemsolver.hxx.
|
protected |
Definition at line 287 of file trws_subproblemsolver.hxx.
|
mutableprotected |
Definition at line 302 of file trws_subproblemsolver.hxx.
|
static |
Definition at line 199 of file trws_subproblemsolver.hxx.
1.8.9.1