OpenGM  2.3.x
Discrete Graphical Model Library
Functions
opengm::detail_gcg Namespace Reference

Functions

template<class GM , class LABELS_ITER >
GM::IndexType getCCFromLabels (const GM &gm, LABELS_ITER labels)
 
template<class CT , class C , class FP , class F >
void findFirst (const CT &toFind, const C &container, FP &position, F &found)
 

Function Documentation

template<class CT , class C , class FP , class F >
void opengm::detail_gcg::findFirst ( const CT &  toFind,
const C &  container,
FP &  position,
F &  found 
)

toFind: colors of interest container: where to search in (a node coloring) position: index into container for an anchor, has length of toFind (undefined if not found) found: length of toFind, whether this color was found

Definition at line 79 of file cgc.hxx.

template<class GM , class LABELS_ITER >
GM::IndexType opengm::detail_gcg::getCCFromLabels ( const GM &  gm,
LABELS_ITER  labels 
)

run connected component labeling of nodes in gm in place given colors in labels. –> dense relabeling

Definition at line 35 of file cgc.hxx.

+ Here is the call graph for this function: