Commit 28a2b5b4 authored by CodeHatchling's avatar CodeHatchling

Fixed a math mistake.

parent 3bd3a091
...@@ -969,7 +969,7 @@ def get_gaussian_kernel(stddev_radius=1.0, max_radius=2): ...@@ -969,7 +969,7 @@ def get_gaussian_kernel(stddev_radius=1.0, max_radius=2):
x = coordinate[0] ** 2.0 + coordinate[1] ** 2.0 x = coordinate[0] ** 2.0 + coordinate[1] ** 2.0
x = gaussian(x) x = gaussian(x)
x -= gauss_zero x -= gauss_zero
x /= gauss_kernel_scale x *= gauss_kernel_scale
x = max(0.0, x) x = max(0.0, x)
return x return x
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment