Implementation of http://research.microsoft.com/pubs/202540/DollarICCV13edges.pdf