Skip to content
Snippets Groups Projects
Commit 8ff77020 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: fix assertion

parent 73c1a855
No related branches found
No related tags found
No related merge requests found
......@@ -402,10 +402,7 @@ LabelImageRegionPruningFilter<TInputLabelImage, TInputSpectralImage, TOutputLabe
LabelType l = outputIt.Get();
LabelType canLabel;
if (m_CanonicalLabels[l] <= oldRegionCount)
{
itkAssertInDebugAndIgnoreInReleaseMacro( 0 );
}
itkAssertOrThrowMacro(m_CanonicalLabels[l] <= oldRegionCount,"Found a label greater than region count")
canLabel = newLabels[m_CanonicalLabels[l]];
outputIt.Set( canLabel );
++outputIt;
......
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