Fills all pores that are not connected to the edges of the image.
im (ND-array) – The image of the porous material
image (ND-array) – A version of
imbut with all the disconnected pores removed.
conn (int) – For 2D the options are 4 and 8 for square and diagonal neighbors, while for the 3D the options are 6 and 26, similarily for square and diagonal neighbors. The default is the maximum option.
Click here to view online example.