PaddedViews.jl icon indicating copy to clipboard operation
PaddedViews.jl copied to clipboard

Repeat, Mirror, Reflect, etc

Open SimonDanisch opened this issue 7 years ago • 8 comments

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?

SimonDanisch avatar Apr 18 '17 21:04 SimonDanisch

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.

Evizero avatar Apr 18 '17 21:04 Evizero

Could be useful additions though, the indices computation for those schemes are reasonably simple

Evizero avatar Apr 18 '17 21:04 Evizero

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 ;)

SimonDanisch avatar Apr 18 '17 21:04 SimonDanisch

But I do see this rather as a padding and not extrapolation ;)

Until you query A[3.52, 3.3] in a 3x3 array :)

Evizero avatar Apr 18 '17 21:04 Evizero

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.

timholy avatar Apr 18 '17 21:04 timholy

https://github.com/JuliaImages/ImageFiltering.jl/pull/99

timholy avatar Apr 30 '19 09:04 timholy

Does ImageFiltering also use if per access of pixel?

RoyiAvital avatar Oct 19 '19 22:10 RoyiAvital

Periodic / Circular view can be brought from CircularArrays.jl.

RoyiAvital avatar Apr 06 '22 07:04 RoyiAvital