holospy.tools
#
- holospy.tools.calculate_carrier_frequency(data, sb_position, scale)#
Calculates fringe carrier frequency of a hologram
- Parameters:
- data
numpy.ndarray
The data of the hologram.
- sb_position
tuple
Position of the sideband with the reference to non-shifted FFT
- scale
tuple
Scale of the axes that will be used for the calculation.
- data
- Returns:
numpy.ndarray
Carrier frequency
- holospy.tools.estimate_fringe_contrast_fourier(data, sb_position, apodization='hanning')#
Estimates average fringe contrast of a hologram by dividing amplitude of maximum pixel of sideband by amplitude of FFT’s origin.
- Parameters:
- data
numpy.ndarray
The data of the hologram.
- sb_position
tuple
Position of the sideband with the reference to non-shifted FFT
- apodization
str
,None
Use ‘hanning’, ‘hamming’ or None to apply apodization window in real space before FFT Apodization is typically needed to suppress the striking due to sharp edges of the which often results in underestimation of the fringe contrast. (Default: ‘hanning’)
- data
- Returns:
numpy.ndarray
Fringe contrast as a float