Edge detection is pretty much working smoothly now.  Implemented a minimum distance to path functionality.