FourierTransform#
- class deeptrack.holography.FourierTransform(**kwargs)#
Bases:
FeatureComputes the Fourier transform of an optical field with optional symmetric padding.
The Fourier transform converts a spatial-domain optical field into the frequency domain.
Parameters#
- padding: int, optional
Number of pixels to pad symmetrically around the image (default: 32).
Methods#
- get(image: Image | np.ndarray, padding: int, **kwargs: dict[str, Any]) -> np.ndarray
Computes the 2D Fourier transform of the input image.
Returns#
- np.ndarray
The complex Fourier-transformed image.
Notes#
Uses np.fft.fft2 for fast computation.
Pads the image symmetrically to avoid edge artifacts.
Returns a complex-valued result.
Methods Summary
get(image[, padding])Computes the Fourier transform of the image.
Methods Documentation
- get(image: Image | np.ndarray, padding: int = 32, **kwargs: dict[str, Any]) np.ndarray#
Computes the Fourier transform of the image.
Parameters#
- image: Image or ndarray
The image to transform.
- padding: int, optional
Number of pixels to pad symmetrically around the image (default is 32).
**kwargs: dict of str to Any
Returns#
- np.ndarray
The Fourier transform of the image.