Here I have an image for a segmentation output from one of the segmentation models. I would like to create an outline for these masks and then put that outline on the original image to indicate the predicted areas on the image as segmentation output.
I tried using PIL filter FIND_EDGES but it gives very thin edges for an outline.
Is there any way to convert this mask image into an image with just outlines for these masks where I can control the thickness of the outline?


