sample_contour