InverseFourierTransform#
- class deeptrack.optical.holography.InverseFourierTransform(**kwargs: Any)#
Bases:
FeatureComputes the inverse Fourier transform of an optical field and removes padding.
The inverse Fourier transform converts a frequency-domain optical field back into the spatial domain, undoing the symmetric padding applied by FourierTransform.
Parameters#
- padding: int, optional
Number of pixels to remove symmetrically from each side after the inverse transform (default: 32).
Methods#
- get(image, padding, **kwargs) -> np.ndarray
Computes the inverse Fourier transform and removes padding.
Examples#
>>> import deeptrack as dt >>> import numpy as np >>> field = np.random.rand(128, 128, 2) >>> ft_op = dt.holography.FourierTransform() >>> transformed_field = ft_op(field) >>> ift_op = dt.holography.InverseFourierTransform() >>> reconstructed_field = ift_op(transformed_field)
Methods Summary
get(image[, padding])Computes the inverse Fourier transform and removes padding.
Methods Documentation
- get(image: ndarray, padding: int = 32, **kwargs: Any) ndarray#
Computes the inverse Fourier transform and removes padding.
Parameters#
- image: np.ndarray
The image to transform.
- padding: int, optional
Number of pixels removed symmetrically after inverse transformation (default is 32).
- **kwargs: Any
Additional keyword arguments.
Returns#
- np.ndarray
The inverse Fourier transform of the image.