Detecting image contours with the Canny operator