pylops.signalprocessing.patch2d.patch2d_pad_to_next¶
- pylops.signalprocessing.patch2d.patch2d_pad_to_next(inpt, nwin, nover, nop)[source]¶
Pad input to next set of patches
Pad
inptto the next set of patches such that the padded input is completely filled by overlapping patches.- Parameters:
- inpt
numpy.ndarray 3-dimensional input data.
- nwin
tuple Number of samples of window.
- nover
tuple Number of samples of overlapping part of window.
- nop
tuple Size of model in the transformed domain.
- inpt
- Returns:
- inpt_pad
numpy.ndarray 3-dimensional input data after padding along the first and second dimensions
- nwins
tuple Number of windows.
- dims
tuple Shape of the 2-dimensional model.
- mwins_inends
tuple Start and end indices for model patches (stored as tuple of tuples).
- dwins_inends
tuple Start and end indices for data patches (stored as tuple of tuples).
- inpt_pad