Skip to content

Commit

Permalink
ENH: Add itk::RelabelComponentImageFilter signedness check
Browse files Browse the repository at this point in the history
Add a template instantiation to check that the
`itk::RelabelComponentImageFilter` class does not trigger compiler
warnings with signed pixel types.

Ensures regressions are not introduced after the fix in commit 108a2cf.
  • Loading branch information
jhlegarreta committed Oct 7, 2024
1 parent 9413dc4 commit 4ba0ab0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
#include "itkTestingMacros.h"


using SignedPixelType = signed short;

// Explicit template instantiation to test compile-time support of signed types
template class itk::RelabelComponentImageFilter<itk::Image<SignedPixelType>, itk::Image<SignedPixelType>>;


int
itkRelabelComponentImageFilterTest(int argc, char * argv[])
{
Expand Down

0 comments on commit 4ba0ab0

Please sign in to comment.