dexp.processing.utils.pad Functions fit_to_shape(array, shape, **kwargs) Pads and crop array to fit shape, keyword arguments are used for the padding function.