ADD: single function to get segment+contour