-
-
Notifications
You must be signed in to change notification settings - Fork 697
COMP: Use future recommended code for remote modules with ITKv5.4.4 #5183
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
Closed
hjmjohnson
wants to merge
1,068
commits into
InsightSoftwareConsortium:release-5.4
from
hjmjohnson:new-tag-v5.4.3-remote-slicer-support
Closed
COMP: Use future recommended code for remote modules with ITKv5.4.4 #5183
hjmjohnson
wants to merge
1,068
commits into
InsightSoftwareConsortium:release-5.4
from
hjmjohnson:new-tag-v5.4.3-remote-slicer-support
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Approach looks good. Most of the work will be in "greening" the remote modules. |
This is a follow-up to 097e2dc.
Fix incorrect `BibTeX` citation keys. Fixes: ``` .../ITK/Modules/Filtering/ImageGrid/include/itkBSplineResampleImageFilterBase.h:47: warning: \cite command to 'unser199' does not have an associated number .../ITK/Modules/Core/Common/include/itkGaussianDerivativeOperator.h:80: warning: \cite command to 'lindeberg1999' does not have an associated number .../ITK/Modules/Filtering/Convolution/include/itkMaskedFFTNormalizedCorrelationImageFilter.h:128: warning: \cite command to 'padfield' does not have an associated number ``` Reported by: albert-github <[email protected]> Co-authored-by: albert-github <[email protected]>
Use `ITK_TRY_EXPECT_NO_EXCEPTION` macro in `ImageCompose` tests: - Use `ITK_TRY_EXPECT_NO_EXCEPTION` macro when updating filters in lieu of `try/catch` blocks for the sake of readability and compactness, and to save typing/avoid boilerplate code. - Only place with the macro the code that might raise exceptions.
Conform to ITK style guidelines in test ending message across the `ImageCompose` module test files: add it where missing and use the same message consistently. Take advantage of the commit to remove unnecessary comments about objects being destroyed when exiting the test main method.
Conform to ITK style guidelines in test argument check message across the `ImageCompose` module test files: add the missing argument message where missing and use the same message consistently.
Perform first the test input argument check across the `ImageCompose` module test files. Take advantage of the commit to add the missing argument message where missing and use the same message consistently.
Remove unnecessary/uninformative comment block in `ImageCompose` module test.
Do not capitalize variable first letter: adhere to ITK style guidelines.
…scImageComposeTestStyleEnh STYLE: Miscellaneous `ImageCompose` test style enhancements
This is a follow-up to bbffe4f.
Moved the member function definitions of member functions that have an empty member function definition from their "itk*.hxx" file to the corresponding "itk*.h" file, and into their class definition. Found by regular expression `^..[^:,].+\)\r\n{}` in "itk*.hxx" files. - Follow-up to pull request InsightSoftwareConsortium#5198 commit b94770d "STYLE: Move empty member functions with empty param list from .hxx to .h"
Closes InsightSoftwareConsortium#5179. To address warnings of the style: ...ITK/Modules/Core/Common/include/itkImageBoundaryCondition.h:123: warning: argument 'outputRequestedRegion' of command @param is not found in the argument list of itk::ImageBoundaryCondition< TInputImage, TOutputImage >::GetInputRequestedRegion(const RegionType &inputLargestPossibleRegion, const RegionType &) const
ITK_MSVC_STATIC_CRT was exported from installed ITKConfig.cmake, but it wasn't available when building external modules (e.g. RTK) together with ITK. This caused linking errors for tools.
Modernized the code. Also improved the style, by removing `static_cast<float>`s.
Replaced regular expression `auto[ ]+(\w+) = ([\w:]+){ ([^}]*) };` with `$2 $1{ $3 };` Aims to make the coding style more uniform.
Replaced regular expression `auto[ ]+(\w+) = ([\w:]+){};` with `$2 $1{};` Aims to make the coding style more uniform.
COMP: Provide ITK_MSVC_STATIC_CRT to in-tree build
…ce-rand-with-mt19937 STYLE: Replace `rand()` calls with `std::mt19937` in ImageAdaptor test
…e-auto-from-local-variable-initializations Replace `auto var = T{...}` with `T var{...}`
The original division of `rand()` by `32768.0` was probably meant to yield a number between `[0, 1>`. However, `rand()` returns an integer between `[0, RAND_MAX]`, and `RAND_MAX` may not be `32767`. In practice, when using GCC, `RAND_MAX` may be as large as `2147483647. The "magic number" `32768.0` was introduced on 12 Jan 2002 already, with commit 074c74f.
…ce-Initialize-with-SetSeed FUTURE REMOVE `MersenneTwisterRandomVariateGenerator::Initialize`
…andom-number-RGBGibbsPriorFilter BUG: Fix random number in `RGBGibbsPriorFilter::GibbsTotalEnergy`
Dicomfile with signed int data (pixel rep=1) can be decoded as uint with the correct intercept. The assertion blocking this behavior has been changed to a more meaningful check. Closes InsightSoftwareConsortium#5290
…kOptImageToImageMetricsTest04 BUG: Make itkOptImageToImageMetricsTest04 not to fail on single-CPU s…
…es_reader_print_filenames ENH: Add printing of FileNames to ImageSeriesReader
…valgrind_supression ENH: Add valgrind suppression file for Ubuntu 22.04 LTS
It is recommended to use C++11's random number generation facilities (like `std::mt19937`) to replace `rand()`, according to https://en.cppreference.com/w/cpp/numeric/random/rand
Clarify further remote module major version bumps with ITK minor releases.
e2ca9d3
to
4071d54
Compare
When preparing for the future with ITK by setting ITK_FUTURE_LEGACY_REMOVE:BOOL=ON ITK_LEGACY_REMOVEBOOL=ON The future preferred macro should be used │ - itkTypeMacro │ + itkOverrideGetNameOfClassMacro
4071d54
to
19d7218
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These selected remote modules are chosen to support
the building of heavily used projects that depend
on ITK.
Slicer (https://github.com/Slicer/Slicer)
BRAINSTools (https://github.com/BRAINSia/BRAINSTools)
ANTs (https://github.com/ANTsX/ANTs)
needs of remote modules for ITK.
When preparing for the future with ITK by setting
ITK_FUTURE_LEGACY_REMOVE:BOOL=ON
ITK_LEGACY_REMOVEBOOL=ON
Identifies code changes that will eventually be needed in
future version (i.e. ITKv6 and ITKv7) once deprecated
code is removed.
By updating the following remote modules to be backward and
future compatible with the recommended coding standards, we
can more easily address code updates for supporting the
community.
Pull requests that this one depends upon:
PR Checklist