Commit 1e639c2b authored by Taddeüs Kroes's avatar Taddeüs Kroes

improc ass4: Source code cleanup.

parent 7a22a928
......@@ -17,9 +17,9 @@ def canny(F, s, Tl=None, Th=None):
F = gD(F, s, 0, 0)
# Find intensity gradient
mask = Gauss1(1.4, 1)
Gx = convolve1d(F, mask, axis=1, mode='nearest')
Gy = convolve1d(F, mask, axis=0, mode='nearest')
W = Gauss1(1.4, 1)
Gx = convolve1d(F, W, axis=1, mode='nearest')
Gy = convolve1d(F, W, axis=0, mode='nearest')
G = zeros(F.shape)
A = zeros(F.shape, dtype=int)
......
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