Skip to content

Commit b7ac249

Browse files
committed
[Images] Compensate for isapprox(eps(), 0.0) = false on julia 0.4
JuliaLang/julia#12393
1 parent 116c8d3 commit b7ac249

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/Images/test/algorithms.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ facts("Algorithms") do
182182
Afft = Images.imfilter_fft(A, kern, "inner")
183183
@fact Af => roughly(Afft)
184184
h = [0.24,0.87]
185-
@fact Images.imfilter(eye(3), h, "inner") => roughly(Images.imfilter_fft(eye(3), h, "inner")) # issue #204
185+
hfft = Images.imfilter_fft(eye(3), h, "inner")
186+
hfft[abs(hfft) .< 3eps()] = 0
187+
@fact Images.imfilter(eye(3), h, "inner") => roughly(hfft) # issue #204
186188

187189
@fact approx_equal(Images.imfilter_gaussian(ones(4,4), [5,5]), 1.0) => true
188190
A = fill(convert(Float32, NaN), 3, 3)

0 commit comments

Comments
 (0)