|
OpenGM
2.3.x
Discrete Graphical Model Library
|
Potts function for two variables. More...
#include <potts.hxx>
Inheritance diagram for opengm::PottsFunction< T, I, L >:
Collaboration diagram for opengm::PottsFunction< T, I, L >:Public Types | |
| typedef T | ValueType |
| typedef L | LabelType |
| typedef I | IndexType |
Public Types inherited from opengm::FunctionBase< PottsFunction< T, I, L >, T, size_t, size_t > | |
| typedef AccessorIterator< FunctionShapeAccessorType, true > | FunctionShapeIteratorType |
Public Member Functions | |
| PottsFunction (const LabelType=2, const LabelType=2, const ValueType=ValueType(), const ValueType=ValueType()) | |
| constructor More... | |
| LabelType | shape (const size_t) const |
| size_t | size () const |
| size_t | dimension () const |
| template<class ITERATOR > | |
| ValueType | operator() (ITERATOR) const |
| bool | operator== (const PottsFunction &) const |
| ValueType | valueEqual () const |
| ValueType | valueNotEqual () const |
| IndexType | numberOfParameters () const |
| ValueType | parameter (const size_t index) const |
| ValueType & | parameter (const size_t index) |
| bool | isPotts () const |
| bool | isGeneralizedPotts () const |
| ValueType | min () const |
| ValueType | max () const |
| ValueType | sum () const |
| ValueType | product () const |
| MinMaxFunctor< ValueType > | minMax () const |
| template<class ITERATOR > | |
| T | operator() (ITERATOR begin) const |
Public Member Functions inherited from opengm::FunctionBase< PottsFunction< T, I, L >, T, size_t, size_t > | |
| bool | isPotts () const |
| bool | isGeneralizedPotts () const |
| bool | isSubmodular () const |
| bool | isSquaredDifference () const |
| bool | isTruncatedSquaredDifference () const |
| bool | isAbsoluteDifference () const |
| bool | isTruncatedAbsoluteDifference () const |
| bool | isLinearConstraint () const |
| MinMaxFunctor< T > | minMax () const |
| find minimum and maximum of the function in a single sweep More... | |
| ReturnType | min () const |
| ReturnType | max () const |
| ReturnType | sum () const |
| ReturnType | product () const |
| ReturnType | accumulate () const |
| accumulate all values of the function More... | |
| void | forAllValuesInOrder (FUNCTOR &functor) const |
| call a functor for each value of the function (in lexicographical order of the variable indices) More... | |
| void | forAllValuesInSwitchedOrder (FUNCTOR &functor) const |
| void | forAllValuesInAnyOrder (FUNCTOR &functor) const |
| call a functor for each value of the function (in un-specified order) More... | |
| void | forAtLeastAllUniqueValues (FUNCTOR &functor) const |
| call a functor for at least all unique values of the function More... | |
| void | forAllValuesInOrderWithCoordinate (COORDINATE_FUNCTOR &functor) const |
| void | forAllValuesInAnyOrderWithCoordinate (COORDINATE_FUNCTOR &functor) const |
| void | forAtLeastAllUniqueValuesWithCoordinate (COORDINATE_FUNCTOR &functor) const |
| bool | operator== (const PottsFunction< T, I, L > &) const |
| FunctionShapeIteratorType | functionShapeBegin () const |
| FunctionShapeIteratorType | functionShapeEnd () const |
| size_t | numberOfParameters () const |
| size_t | parameterIndex (const size_t paramNumber) const |
Potts function for two variables.
| typedef I opengm::PottsFunction< T, I, L >::IndexType |
| typedef L opengm::PottsFunction< T, I, L >::LabelType |
| typedef T opengm::PottsFunction< T, I, L >::ValueType |
|
inline |
constructor
| numberOfLabels1 | number of labels of the first variable |
| numberOfLabels2 | number of labels of the second variable |
| valueEqual | value if the labels of the two variables are equal |
| valueNotEqual | value if the labels of the two variables are not equal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| ValueType opengm::PottsFunction< T, I, L >::operator() | ( | ITERATOR | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
1.8.9.1