Scipy: Feature request: Periodic boundary conditions ("wrap" mode) for ndimage morphology functions (dilation, erosion, opening, closing)

Created on 14 Dec 2017  路  1Comment  路  Source: scipy/scipy

Most of the important functions in scipy.ndimage support periodic boundary conditions via mode="wrap" (e.g. convolve), but this does not seem to be the case for any of the morphology functions, such as binary_erosion, binary_dilation, binary_opening or binary_closing.

It would be nice if periodic boundary conditions were implemented for those as well.

As far as I can tell, their two-dimensional equivalent in OpenCV does have this functionality (via BORDER_WRAP), although I haven't tested it. Let me know if what I'm asking doesn't make any sense.

enhancement scipy.ndimage

Most helpful comment

This would also be useful for ndimage.label().

>All comments

This would also be useful for ndimage.label().

Was this page helpful?
0 / 5 - 0 ratings