tomodrgn.fft.ht2_center#

ht2_center(possibly_batched_imgs: ndarray) ndarray[source]#

Batch-vectorized 2-D DHT of an even-box sized image(s) as numpy array Uses relationship DHT(x) == DFT(x).real - DFT(x).imag == (DFT(x) * (1 + i)).real Note: numpy promotes default input dtype np.float32 to output dtype np.float64

Parameters:

possibly_batched_imgs – np.ndarray of images, shape ([N], D, D)

Returns:

np.ndarray of images DFT, shape ([N], D, D)