Fix bug regarding edge threshold.

- The same threshold should have the same effect regardless of what
  minimum_contrast is set to. This bug fix means results with
  constrast sensitive edges will now be different.