Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add itk::RelabelComponentImageFilter signedness check #4871

Conversation

jhlegarreta
Copy link
Member

@jhlegarreta jhlegarreta commented Oct 6, 2024

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.

PR Checklist

@github-actions github-actions bot added type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots type:Enhancement Improvement of existing methods or implementation type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct area:Segmentation Issues affecting the Segmentation module labels Oct 6, 2024
@jhlegarreta
Copy link
Member Author

Chose to keep it separate from itkitkRelabelComponentImageFilterTest.cxx.

It does not test anything other than those warnings reported in #4865 in reality.

@jhlegarreta
Copy link
Member Author

Linux and macOS CI builds raised the warnings since the history of this branch did not include the fix in #4865:
https://open.cdash.org/viewBuildError.php?type=1&buildid=9946454
https://open.cdash.org/viewBuildError.php?type=1&buildid=9946439

However, as mentioned in #4865 (comment), Windows did not raise any warnings:
https://open.cdash.org/builds/9946442

Rebasing on master now to get green CI builds.

@jhlegarreta jhlegarreta force-pushed the AddRelabelComponentsImageFilterSignednessTest branch from 24e8e63 to c58b9c0 Compare October 6, 2024 20:36
@jhlegarreta jhlegarreta force-pushed the AddRelabelComponentsImageFilterSignednessTest branch from c58b9c0 to a9fe742 Compare October 6, 2024 22:26
Copy link
Contributor

@N-Dekker N-Dekker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Jon! A little nitpick: there is a typo in the subject of the commit: "RelabelComponentImageFilter" is misspelled. No showstopper to me, though. Approved!

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.
@jhlegarreta jhlegarreta force-pushed the AddRelabelComponentsImageFilterSignednessTest branch from a9fe742 to 4ba0ab0 Compare October 7, 2024 13:39
@github-actions github-actions bot removed the type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots label Oct 7, 2024
@jhlegarreta jhlegarreta changed the title ENH: Add itk::RelabelComponenetsImageFilter signedness test ENH: Add itk::RelabelComponentImageFilter signedness test Oct 7, 2024
@jhlegarreta jhlegarreta changed the title ENH: Add itk::RelabelComponentImageFilter signedness test ENH: Add itk::RelabelComponentImageFilter signedness check Oct 7, 2024
@jhlegarreta
Copy link
Member Author

there is a typo in the subject of the commit: "RelabelComponentImageFilter" is misspelled.

See 4ba0ab0.

Copy link
Contributor

@N-Dekker N-Dekker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again Jon! 👍

@N-Dekker N-Dekker merged commit b363e80 into InsightSoftwareConsortium:master Oct 7, 2024
13 checks passed
@jhlegarreta jhlegarreta deleted the AddRelabelComponentsImageFilterSignednessTest branch October 7, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Segmentation Issues affecting the Segmentation module type:Enhancement Improvement of existing methods or implementation type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants