Optimal edge-based shape detection | Synapse