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.
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
Support overlapping tiles #23
Support overlapping tiles #23
Changes from 12 commits
49911cb
00c773d
af9bd17
ddcac36
5de4087
eff5af9
98a43ad
ea1fe04
8a7c8bf
5d6dd20
f12fd88
2fb3c96
5be49ac
4028549
586e8f8
802f7f9
6961da6
75b2a90
9abde07
ee478a9
528a7b1
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
This file was deleted.
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 thought, lets be conservative for now. I just added these two strategies. They are enough to cover the funcionality on
master
as well as my balanced tile size use case.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.
A different PR could implement a strategy that sets the stride to
(1,1,1...)
giving the behavior sketched here:JuliaImages/ImageFiltering.jl#155 (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.
For more advanced strides, we might want to do
tileiterator(axes, UnitStride())[begin:2:end, :, begin+2:4:end-2]
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.
This works but might not be the most efficient way because indexing with
[begin:2:end, :, begin+2:4:end-2]
allocates a new array.No need to implement in this PR, though. It is also very likely that reducing memory allocation only gives a marginal performance boost.
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.
Yes you are right this allocates currently, we can fix it, when it becomes a practical obstacle.