modelling objects by contours