87 unsigned int minLabel = std::numeric_limits<unsigned int>::max();
88 unsigned int maxLabel = 0;
103 unsigned int maxval = std::numeric_limits<unsigned int>::max();
104 std::vector<unsigned int> foundLabels(maxLabel - minLabel + 1, maxval);
107 unsigned int currentPosition = 0;
112 if(foundLabels[label - minLabel] == maxval)
114 foundLabels[label - minLabel] = currentPosition;