pylops.signalprocessing.sliding2d.sliding2d_pad_to_next

pylops.signalprocessing.sliding2d.sliding2d_pad_to_next(inpt, nwin, nover, nop)[source]

Pad input to next slice

Pad inpt to the next slice such that the padded input is completely filled by overlapping slices.

Parameters:
inptnumpy.ndarray

2-dimensional input data.

nwintuple

Number of samples of window.

noverint

Number of samples of overlapping part of window.

noptuple

Size of model in the transformed domain.

Returns:
inpt_padnumpy.ndarray

2-dimensional input data after padding along the first dimension

nwinsint

Number of windows of padded input.

dimstuple

Shape of the 2-dimensional model of padded input.

mwins_inendstuple

Start and end indices for model patches of padded input (stored as tuple of tuples).

dwins_inendstuple

Start and end indices for data patches of padded input (stored as tuple of tuples).