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.
This would also be useful for ndimage.label().
Most helpful comment
This would also be useful for ndimage.label().