Skip to content
Snippets Groups Projects
Commit 59f7e9fe authored by Sebastien Harasse's avatar Sebastien Harasse
Browse files

BUG: fixed bad iterator causing segfault

parent 0523fd81
No related branches found
No related tags found
No related merge requests found
...@@ -189,7 +189,7 @@ LabelImageRegionMergingFilter<TInputLabelImage, TInputSpectralImage, TOutputLabe ...@@ -189,7 +189,7 @@ LabelImageRegionMergingFilter<TInputLabelImage, TInputSpectralImage, TOutputLabe
att.maxValue[comp] = std::max(currentObjectAttributes.maxValue[comp], adjacentObjectAttributes.maxValue[comp]); att.maxValue[comp] = std::max(currentObjectAttributes.maxValue[comp], adjacentObjectAttributes.maxValue[comp]);
} }
// Merge objects // Merge objects
if(labelIt->second->Size() >= adjLabelObject->Size()) if(labelObject->Size() >= adjLabelObject->Size())
{ {
m_LabelMap->MergeLabels(labelIt->first, adjLabel); m_LabelMap->MergeLabels(labelIt->first, adjLabel);
m_LabelMap->GetLabelObject(labelIt->first)->SetAttribute(att); m_LabelMap->GetLabelObject(labelIt->first)->SetAttribute(att);
......
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