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

Add support to build with ITK5 (and keep support for ITK4) #33

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

carandraug
Copy link

Convert3D does not currently build with ITK5. There are a series of very minor changes required. This pull request implements them (and keeps support to build with ITK4).

…t' variable

The `it` variable is declared twice, in the initialiser of the for
loop and inside the for loop.  This commit fixes the issue so that we
can build without `-Wshadow`.
… ITK5.

Since ITK5, descendents of `itk::InterpolateImageFunction` must
implement the `GetRadius()` which is a pure virtual method in the
parent.  This method is not present in ITK so preprocessing logic is
added to hide it when building with ITK4.
The vnl_math_* functions were deprecated in ITK sometime ago (not sure
when but ITK 4.10 actively replaced its use internally) and are no
longer present in ITK 5.2.

Moving forward, ITK recommends the use of equivalent functions in the
standard library or, if that's not possible, to use itk::Math::* (see
Utilities/ITKv5Preparation/replace_vnl_math_XXX.sh in ITK sources).
The vcl_* functions were deprecated in ITK sometime ago (not sure when
but ITK 4.10 actively replaced its use internally) and are no longer
present in ITK 5.2.

ITK recommends the use of equivalent functions in the standard library
(see Utilities/Maintenance/VCL_ModernizeNaming.py in ITK sources).
@carandraug
Copy link
Author

Gentle ping. Would be nice to have these merged and the changes appear trivial.

@carandraug
Copy link
Author

This will look much simpler if reviewed one commit at a time instead (all details are on the individual commit messages).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant