Skip to content

Commit

Permalink
BUG: Fix for incorrect number of connected regions
Browse files Browse the repository at this point in the history
m_RegionNumber stores the number of number connected regions after propagation.
Not using m_RegionList as it will is used for SpecifiedRegions extraction.
  • Loading branch information
PranjalSahu authored and hjmjohnson committed Jan 6, 2022
1 parent b69598e commit 6746880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Core/Mesh/include/itkConnectedRegionsMeshFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class ITK_TEMPLATE_EXPORT ConnectedRegionsMeshFilter : public MeshToMeshFilter<T
SizeValueType
GetNumberOfExtractedRegions()
{
return m_RegionList.size();
return m_RegionNumber;
}

protected:
Expand Down

0 comments on commit 6746880

Please sign in to comment.