Commit 7394d8eb authored by Cédric Traizet's avatar Cédric Traizet

PERF : modified range based for loop as neighbour is of type integer

parent 47e260c2
......@@ -69,7 +69,7 @@ PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >
double proximity = itk::NumericTraits<double>::max();
InputLabelType label = neighbours.first;
InputLabelType closestNeighbour = label;
for (auto const & neighbour : neighbours.second)
for (auto neighbour : neighbours.second)
{
auto statsLabel = m_LabelStatistic[ label ];
auto statsNeighbour = m_LabelStatistic[ neighbour ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment