Fix typo.
After profiling... way faster.  Removed filter_median in get_edges().