PyDDM.ddm_calc.window_function

PyDDM.ddm_calc.window_function#

window_function(im)#

Applies windowing function to images.

Particles moving outside the frame of the images can lead to artifacts in the DDM analysis, especially for the higher wavevectors. Use of windowing function described in Giavazzi 2017 [1]. We apply the Blackman-Harris windowing. This function creates a mask to multiply the images by to implement the windowing.

Parameters:

im (array) – Array of same size as one frame of the image sequences for analysis.

Returns:

filter_func – Multiply this array (of same size as im) to apply the windowing filter.

Return type:

array

References