detecting edge direction using Julia-language
The edges "missing" from the picture are actually those that have angle=0; which is the same as the phase you get for "there's no edge here".

So, nothing wrong.