From 4ba0ab0a3ccbe4495ed03e0bc7a0af47e67416e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Sun, 6 Oct 2024 13:42:13 -0400 Subject: [PATCH] ENH: Add `itk::RelabelComponentImageFilter` signedness check 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. --- .../test/itkRelabelComponentImageFilterTest.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Modules/Segmentation/ConnectedComponents/test/itkRelabelComponentImageFilterTest.cxx b/Modules/Segmentation/ConnectedComponents/test/itkRelabelComponentImageFilterTest.cxx index d505d7d6d93..a49366c774a 100644 --- a/Modules/Segmentation/ConnectedComponents/test/itkRelabelComponentImageFilterTest.cxx +++ b/Modules/Segmentation/ConnectedComponents/test/itkRelabelComponentImageFilterTest.cxx @@ -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>; + + int itkRelabelComponentImageFilterTest(int argc, char * argv[]) {