1 #ifndef TIL_EQUIVALENCECHAIN_H 2 #define TIL_EQUIVALENCECHAIN_H 67 void reset(
int nLabels);
71 void setEquivalence(
int label1,
int label2);
86 int operator[] (
int n) {
return m_chain[n]; }
92 if (label != m_chain[label])
94 return m_chain[label] = getLastLabel(m_chain[label]);
127 void allPointToLastLabel();
128 int _fillWithLastLabel(
int i);
148 if (m_maxLabel == m_size)
return 0;
150 m_chain[m_maxLabel] = m_maxLabel;
179 if (label1 != label2)
181 int last1 = this->getLastLabel(label1);
182 int last2 = this->getLastLabel(label2);
186 m_chain[last1] = last2;
void print(const Affine< T > &a)
Belongs to package Box Do not include directly, include til/Box.h instead.
General macros, definitions and functions.
int getLastLabel(int label)
void setEquivalence(int label1, int label2)