PaddedViews.jl
PaddedViews.jl copied to clipboard
Repeat, Mirror, Reflect, etc
This doesn't seem to support the classic padding styles by repeating values already inside the array. Is support planned, or not in the scope of this package? Am I missing any package doing this already?
There are extrapolation in Interpolations.jl for these kind of schemes. After all this kind of "padding" needs to reason about space. PaddedViews
are quite ignorant of that, which make them simple.
Could be useful additions though, the indices computation for those schemes are reasonably simple
ha funny... I was searching this in order to work with Interpolations! Guess I should have read the docs more carefully! But I do see this rather as a padding and not extrapolation ;)
But I do see this rather as a padding and not extrapolation ;)
Until you query A[3.52, 3.3]
in a 3x3 array :)
ImageFiltering also has some more sophisticated padding. This is really just a quick crutch for visualization (http://juliaimages.github.io/latest/indexing.html), although it could become more than that. I'm not opposed to doing more with it, but since ImageFiltering already does this (in a different way, not as a "view") I think we would have to think carefully about how we would want to implement this.
https://github.com/JuliaImages/ImageFiltering.jl/pull/99
Does ImageFiltering
also use if
per access of pixel?
Periodic / Circular view can be brought from CircularArrays.jl
.