Skip to content

Commit

Permalink
COMP: Fix compilation issue when using RelabelComponentImageFilter
Browse files Browse the repository at this point in the history
* Update parameter type to reflect underlying container indexing

Fixes InsightSoftwareConsortium#4865
  • Loading branch information
kenavolic committed Oct 1, 2024
1 parent 3b04ad1 commit c82bc5d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class ITK_TEMPLATE_EXPORT RelabelComponentImageFilter : public InPlaceImageFilte
* valid after the filter has executed. Size of the background
* (object #0) is not calculated. */
ObjectSizeType
GetSizeOfObjectInPixels(LabelType obj) const
GetSizeOfObjectInPixels(SizeValueType obj) const
{
if (obj > 0 && obj <= m_NumberOfObjects)
{
Expand All @@ -223,7 +223,7 @@ class ITK_TEMPLATE_EXPORT RelabelComponentImageFilter : public InPlaceImageFilte
* size). This information is only valid after the filter has
* executed. Size of the background (object #0) is not calculated. */
float
GetSizeOfObjectInPhysicalUnits(LabelType obj) const
GetSizeOfObjectInPhysicalUnits(SizeValueType obj) const
{
if (obj > 0 && obj <= m_NumberOfObjects)
{
Expand Down

0 comments on commit c82bc5d

Please sign in to comment.