holospy.tools#

holospy.tools.calculate_carrier_frequency(data, sb_position, scale)#

Calculates fringe carrier frequency of a hologram

Parameters:
datanumpy.ndarray

The data of the hologram.

sb_positiontuple

Position of the sideband with the reference to non-shifted FFT

scaletuple

Scale of the axes that will be used for the calculation.

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:
datanumpy.ndarray

The data of the hologram.

sb_positiontuple

Position of the sideband with the reference to non-shifted FFT

apodizationstr, 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’)

Returns:
numpy.ndarray

Fringe contrast as a float