-
Notifications
You must be signed in to change notification settings - Fork 67
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 ImageBufferAndIndexRange
example
#368
ENH: Add ImageBufferAndIndexRange
example
#368
Conversation
8659616
to
cf25845
Compare
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.
@N-Dekker Looking great! One question below.
image->Allocate(); | ||
|
||
const itk::ImageBufferRange<TImage> imageBufferRange(*image); | ||
std::iota(imageBufferRange.begin(), imageBufferRange.end(), PixelType{ 0 }); |
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.
Very cool!
We may have difficulty in using classes in documentation that have been introduced after the 5.2 release, see #362 discussion. |
"itk::ImageRegionIndexRange" is an alias, not a class. Maybe that's the problem...? "itk::ImageRegionIndexRange" is at https://itk.org/Doxygen/html/namespaceitk.html#a6149e4650b1896fdc969600c22eb50f4 defined as:
With my upcoming amend + force-push, I think I'll just remove "ImageRegionIndexRange" from the |
cf25845
to
68e7d3d
Compare
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.
👨🎤 😎 awesome!!
Unfortunately "build-test-documentation (ubuntu-18.04)" still fails, even after my force-push. Any idea why? It says at https://open.cdash.org/viewBuildError.php?type=1&buildid=7925758 :
|
3979ef1
to
3a78d54
Compare
FYI The force-push that I just did adjusted the |
Using `ImageBufferRange` and `IndexRange`, which were introduced with ITK 5.0.
3a78d54
to
0ba2890
Compare
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.
Awesome, Neils!
🚀 Excellent example Niels! https://examples.itk.org/src/core/common/imagebufferandindexrange/documentation |
Using
ImageBufferRange
andIndexRange
, which were introduced with ITK 5.0.