Create getLabelsFromContour.m