-
-
Notifications
You must be signed in to change notification settings - Fork 664
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
WIP (Not ready): Add GradientImageFilter::OverrideBoundaryCondition(std::unique_ptr<BoundaryConditionType>)
#4533
Draft
N-Dekker
wants to merge
5
commits into
InsightSoftwareConsortium:master
Choose a base branch
from
N-Dekker:GradientImageFilter-OverrideBoundaryCondition
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
github-actions
bot
added
type:Testing
Ensure that the purpose of a class is met/the results on a wide set of test cases are correct
area:Filtering
Issues affecting the Filtering module
labels
Mar 26, 2024
N-Dekker
force-pushed
the
GradientImageFilter-OverrideBoundaryCondition
branch
from
March 26, 2024 09:57
e6fd91e
to
ddf1f8d
Compare
N-Dekker
force-pushed
the
GradientImageFilter-OverrideBoundaryCondition
branch
from
April 1, 2024 20:24
ddf1f8d
to
9843157
Compare
Follow-up to pull request InsightSoftwareConsortium#4532 commit b4f0bb8 STYLE: Replace "the the" with "the" in comments
Added a helper typedef, for `GradientImageFilter::OverrideBoundaryCondition` and its implementation.
Added `GradientImageFilter::OverrideBoundaryCondition` overload, to allows specifying the argument by a `unique_ptr`. Aims to make it more clear that the filter takes the ownership of the specified `BoundaryCondition` object. Triggered by a comment from Bradley Lowekamp at InsightSoftwareConsortium#4512 (comment) on March 13, 2024.
N-Dekker
force-pushed
the
GradientImageFilter-OverrideBoundaryCondition
branch
from
April 2, 2024 09:36
9843157
to
650d8ca
Compare
Aims to avoid errors from ITK.Linux.Python and ITK.macOS.Python like those from https://open.cdash.org/viewBuildError.php?buildid=9511958: > Wrapping/Modules/ITKImageGradient/itkGradientImageFilterPython.cpp:3856:70: > error: call to implicitly-deleted copy constructor of > `std::unique_ptr<itk::ImageBoundaryCondition<itk::Image<float, 2>>>` Using ITK's current SWIG revision, 2024-03-26-master.
Deprecated (`ITK_FUTURE_LEGACY_REMOVE`) the overload of `GradientImageFilter::OverrideBoundaryCondition` that has a raw pointer as parameter, in favor of the overload that has a `unique_ptr` as parameter.
N-Dekker
force-pushed
the
GradientImageFilter-OverrideBoundaryCondition
branch
from
April 2, 2024 13:48
650d8ca
to
337e3ff
Compare
For the record, I started a discussion on how unique_ptr parameters are supported by SWIG, at: |
N-Dekker
changed the title
Add
WIP (Not ready): Add Apr 4, 2024
GradientImageFilter::OverrideBoundaryCondition(std::unique_ptr<BoundaryConditionType>)
GradientImageFilter::OverrideBoundaryCondition(std::unique_ptr<BoundaryConditionType>)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:Filtering
Issues affecting the Filtering module
type:Testing
Ensure that the purpose of a class is met/the results on a wide set of test cases are correct
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.
Deprecated the old
GradientImageFilter
member functionOverrideBoundaryCondition(BoundaryConditionType *)
in favor ofOverrideBoundaryCondition(std::unique_ptr<BoundaryConditionType>)
.Aims to make it more clear that the filter takes the ownership of the specified
BoundaryCondition
object.Triggered by a comment from Bradley Lowekamp (@blowekamp) at #4512 (comment)