-
Notifications
You must be signed in to change notification settings - Fork 11
ENH: Replace SmallHoleFiller with pct::HoleFillingImageFilter #60
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
base: main
Are you sure you want to change the base?
Conversation
87ff333 to
c42d655
Compare
SimonRit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, just minor suggestions.
include/pctHoleFillingImageFilter.h
Outdated
| * is reached or an iteration makes no progress. | ||
| */ | ||
| template <typename TImage> | ||
| class HoleFillingImageFilter : public itk::ImageToImageFilter<TImage, TImage> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it / is there a benefit to make it an InPlaceImageFilter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is not a good idea to use InPlaceImageFilter when working with snapshots
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is a snapshot?
| } | ||
|
|
||
| // Allocate output as a copy of input | ||
| using InitialDuplicatorType = itk::ImageDuplicator<ImageType>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed with an auto keyword.
|
Thanks for the review @SimonRit, I will propose a new version |
c42d655 to
40440d2
Compare
SimonRit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good thanks. Should we add a test? Something like create a small constant image, add holes, and check that the result has constant values? We can merge this one first if you'd like.
|
There is a problem with the git history. If I do the commit presents it as a new file. I would much prefer if you had used to be able to check the changes. Do you mind changing this? I can do it if you'd like. |
I will do it. |
6ee5caa to
5f58cf4
Compare
9db8191 to
f660561
Compare
f660561 to
fda0792
Compare
Close #56