JuliaImages / ImageFiltering.jl

Julia implementations of multidimensional array convolution and nonlinear stencil operations
Other
99 stars 49 forks source link

mapwindow custom anchor #91

Closed jc211 closed 4 years ago

jc211 commented 5 years ago

mapwindow is a very nice utility. I wonder if it would be possible to also change the anchor. At the moment only odd sized windows are allowed. Perhaps by allowing the anchor to be changed to the corner, even sized windows can be allowed as well.

jw3126 commented 5 years ago

It is already possible to choose the anchor wherever you want:

img = 1:10
window = (0:3,)
mapwindow(maximum, img, window)
timholy commented 5 years ago

If there's some improvement that's needed in the docs, please point out where.