Skip to content

Commit 920947d

Browse files
Evizerotimholy
authored andcommitted
fix remaining depwarn (#73)
1 parent b8179fd commit 920947d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/imfilter.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ function _imfilter_inplace_tuple!(r, out, img, kernel, Rbegin, inds, Rend, borde
12711271
out,
12721272
out,
12731273
tail(kernel),
1274-
CartesianIndices(Rbegin.indices..., ind),
1274+
CartesianIndices((Rbegin.indices..., ind)),
12751275
tail(inds),
12761276
_tail(Rend),
12771277
border)

test/triggs.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ using Test
6666
imfilter!(CPU1(Algorithm.IIR()), out, imgf, KernelFactors.IIRGaussian(σ), 2, "replicate")
6767
@test out == ret
6868

69+
# for code coverage
70+
# TODO: make into an actual test
71+
kerng = KernelFactors.IIRGaussian(σ)
72+
kern = (kerng,kerng)
73+
imfilter(imgf, kern, NA())
74+
6975
# When the image has NaNs
7076
imgfnan = copy(imgf)
7177
imgfnum = copy(imgf)

0 commit comments

Comments
 (0)