You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't get the example to run when defining the plus/minus operator in the usual way (i.e., ±(a::Number, b::Number) = a + b, a - b). When I modify the example to something that does work, m1 does not equal m2. Here was my modification. Maybe I am misunderstanding the way the mean was supposed to be calculated from the integral image.
function mean_filter_integral!(out, X)
iX = IntegralArray(X)
for i in CartesianIndex(2, 2):CartesianIndex(size(X).-1)
x, y = i.I
block = iX[x+1, y+1] - iX[x-1, y+1] - iX[x+1, y-1] + iX[x-1, y-1]
out[i] = block / 4
end
return out
end
The text was updated successfully, but these errors were encountered:
I can't get the example to run when defining the plus/minus operator in the usual way (i.e.,
±(a::Number, b::Number) = a + b, a - b
). When I modify the example to something that does work, m1 does not equal m2. Here was my modification. Maybe I am misunderstanding the way the mean was supposed to be calculated from the integral image.The text was updated successfully, but these errors were encountered: