Working with the Canny edge detector