small fix

This commit is contained in:
EiffL 2022-05-17 23:49:12 +02:00
parent aff8db56f5
commit 60309e1490

View file

@ -92,7 +92,7 @@ def gaussian_smoothing(im, sigma):
axis=-1)
k = jnp.linalg.norm(kvec, axis=-1)
# We compute the value of the filter at frequency k
filter = norm(0, 1. / (2. * np.pi * sigma)).pdf(k)
filter = norm.pdf(k, 0, 1. / (2. * np.pi * sigma))
filter /= filter[0,0]
return jnp.fft.ifft2(jnp.fft.fft2(im) * filter).real