contour detection.