Skip to content

Commit

Permalink
Update src/denoising_data.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dpo authored Feb 20, 2024
1 parent 43a4833 commit 47a2939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/denoising_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end
function my_gaussian_kernel(kernel_size, kernel_sigma)
x, y = meshgrid((-kernel_size):kernel_size, (-kernel_size):kernel_size)
normal = 1 / (2 * pi * kernel_sigma^2)
kernel = @. exp(-((x ^ 2 + y ^ 2) / (2 * kernel_sigma^2))) * normal
@. kernel = exp(-((x ^ 2 + y ^ 2) / (2 * kernel_sigma^2))) * normal
kernel ./= sum(kernel)
return kernel
end
Expand Down

0 comments on commit 47a2939

Please sign in to comment.