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
Branches
Tags
No related merge requests found
......@@ -189,7 +189,7 @@ LabelImageRegionMergingFilter<TInputLabelImage, TInputSpectralImage, TOutputLabe
att.maxValue[comp] = std::max(currentObjectAttributes.maxValue[comp], adjacentObjectAttributes.maxValue[comp]);
}
// Merge objects
if(labelIt->second->Size() >= adjLabelObject->Size())
if(labelObject->Size() >= adjLabelObject->Size())
{
m_LabelMap->MergeLabels(labelIt->first, adjLabel);
m_LabelMap->GetLabelObject(labelIt->first)->SetAttribute(att);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment