A Method for fitting Polygons to Figure Boundary Data