porespy.tools.unpad#

porespy.tools.unpad(im, pad_width)#

Remove padding from a previously padded image given original pad widths

Parameters:
  • im (ndarray) – The padded image from which padding should be removed

  • pad_width (int or list of ints) – The amount of padding previously added to each axis. This should be the same as the values used to add original padding. Refer to numpy.pad documentation for more details.

Examples

Click here to view online example.