MatchingData.fourier_padding#

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

Computes efficient shape four Fourier transforms and potential associated shifts.

Parameters:
pad_fourierbool, default False

If true, returns the shape of the full-convolution defined as sum of target shape and template shape minus one, False by default.

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.