Segmentation Mask to Polygon Algorithm An algorithm that will convert the segmentation mask from different models into a polgyon.