Commit 83bbbbcc authored by Taddeüs Kroes's avatar Taddeüs Kroes

improc ass4: Minor bugfix.

parent 04adf14f
......@@ -25,7 +25,7 @@ def Gauss(s):
# Sample the Gaussian function
for x in xrange(r):
for y in xrange(r):
W[x, y] = a * e ** -(((x - size) ** 2 + (y - size) ** 2) / (2 * t))
W[x, y] = a * exp(-(((x - size) ** 2 + (y - size) ** 2) / (2 * t)))
# Make sure that the sum of all kernel values is equal to one
return W / W.sum()
......
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