porespy.tools.remove_overlaps#
- porespy.tools.remove_overlaps(slices, overlap, shape)#
Removes overlap from slices generated by the get_slices_<x> functions.
Given a list of slices which, this returns a new list of slices into the original image with the overlap removed, as well as a list of slices into the sliced images also with overlap removed.
- Parameters:
slices (list of slice objects) – The slice objects with overlaps added
overlap (int or list of ints) – The amount of overlap in each direction. If a scalar is provide then it is assumed this overlap applies in all directions.
shape (list of ints) – The shape of the original image to which the slices apply