pmneila / PyMaxflow

Python library for creating flow networks and computing the maxflow/mincut (aka graph-cuts for Python)
http://pmneila.github.io/PyMaxflow/
243 stars 59 forks source link

how to segement the image with a mask? #52

Open anewusername77 opened 3 years ago

anewusername77 commented 3 years ago

hey there,

now I have a mask(binary), which indicates possible foreground of the image, and one original image corresponding to the mask. How can i use this for segmented region smoothing? (meaning based on the mask to segment the corresponding region of the image, the edge of the mask can be rough)

looking forward to your response.