提交 ed78a250 authored 作者: Marius Killinger's avatar Marius Killinger 提交者: Frederic

Test pyconv3d needed to be fixed to cover th case of filter size 1 in z/Tf

上级 5ae86f7b
......@@ -67,8 +67,9 @@ def pyconv3d(signals, filters):
f_i = filters[nf, :, c, :, :]
r_i = rval[ns, :, nf, :, :]
o_i = ndimage.convolve(s_i, f_i, mode='constant', cval=1)
o_i_sh0 = o_i.shape[0]
# print s_i.shape, f_i.shape, r_i.shape, o_i.shape
r_i += o_i[Tf2:-Tf2, Hf2:-Hf2, Wf2:-Wf2]
r_i += o_i[Tf2:o_i_sh0-Tf2, Hf2:-Hf2, Wf2:-Wf2]
return rval
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论