adaptive_polygonization Run code in main with your confidence map [0,1] and your mask (thresholded from conf map often).