watershed finding edge