Example program:
canny
compute components with shift, adding weighted neighbors
compute the magnitude as sqrt (X*X + Y*Y)
test threshold and set value of output image
next...
prev...
begin lecture again...