MatchingData.fourier_padding#

MatchingData.fourier_padding(pad_target=False)[source]#

Computes efficient shape four Fourier transforms and potential associated shifts.

Parameters:
pad_targetbool, optional

Whether the target has been padded to the full convolution shape.

Returns:
Tuple[tuple of int, tuple of int, tuple of int, tuple of int]

Tuple with convolution, forward FT, inverse FT shape and corresponding shift.

Examples

>>> conv, fwd, inv, shift = matching_data.fourier_padding(pad_fourier=True)