Closed oschub closed 4 years ago
I ran into some unexpected behaviour when passing the identity mapping to mapwindow:
mapwindow
julia> using ImageFiltering julia> X = reshape(1:9, 3, 3) 3×3 reshape(::UnitRange{Int64}, 3, 3) with eltype Int64: 1 4 7 2 5 8 3 6 9 julia> mapwindow(x->x, X, (1,1)) 3×3 Array{Array{Int64,2},2}: [9] [9] [9] [9] [9] [9] [9] [9] [9]
Passing x -> 1x does return the expected result though.
x -> 1x
julia> mapwindow(x->1x, X, (1,1)) 3×3 Array{Array{Int64,2},2}: [1] [4] [7] [2] [5] [8] [3] [6] [9]
Not sure if this is intended behaviour or a bug.
From what I remember, this is documented in the mapwindow docstring. Can you check and report back if it is missing/unclear?
Yes, you're right. My apologies.
No problem and thanks for reporting back.
I ran into some unexpected behaviour when passing the identity mapping to
mapwindow
:Passing
x -> 1x
does return the expected result though.Not sure if this is intended behaviour or a bug.