We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43a4833 commit 47a2939Copy full SHA for 47a2939
src/denoising_data.jl
@@ -45,7 +45,7 @@ end
45
function my_gaussian_kernel(kernel_size, kernel_sigma)
46
x, y = meshgrid((-kernel_size):kernel_size, (-kernel_size):kernel_size)
47
normal = 1 / (2 * pi * kernel_sigma^2)
48
- kernel = @. exp(-((x ^ 2 + y ^ 2) / (2 * kernel_sigma^2))) * normal
+ @. kernel = exp(-((x ^ 2 + y ^ 2) / (2 * kernel_sigma^2))) * normal
49
kernel ./= sum(kernel)
50
return kernel
51
end
0 commit comments