Skip to content
Snippets Groups Projects
Commit 7394d8eb authored by Cédric Traizet's avatar Cédric Traizet
Browse files

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

parent 47e260c2
No related branches found
No related tags found
No related merge requests found
......@@ -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 ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment