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

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
...@@ -69,7 +69,7 @@ PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage > ...@@ -69,7 +69,7 @@ PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >
double proximity = itk::NumericTraits<double>::max(); double proximity = itk::NumericTraits<double>::max();
InputLabelType label = neighbours.first; InputLabelType label = neighbours.first;
InputLabelType closestNeighbour = label; InputLabelType closestNeighbour = label;
for (auto const & neighbour : neighbours.second) for (auto neighbour : neighbours.second)
{ {
auto statsLabel = m_LabelStatistic[ label ]; auto statsLabel = m_LabelStatistic[ label ];
auto statsNeighbour = m_LabelStatistic[ neighbour ]; auto statsNeighbour = m_LabelStatistic[ neighbour ];
......
Supports Markdown
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