Extension 2 - give more votes for stronger edges ( more thresholds)
Extension 3 - change thesampling of (d,tha) to give more/less resolution