PyDDM.ddm_calc.getVel_phiDM#
- getVel_phiDM(phase, dt, pixel_size, framerate, halfsize=5)#
With phiDM, get the velocity by fitting the difference in phase of Fourier tranformed images separated by some lag time (dt) to a plane.
- Parameters:
phase (ndarray) – Phase of the Fourier transform of each image in image stack
dt (int) – Lag time in frame for which the displacement will be found.
pixel_size (float) – Pixel size
framerate (float) – Number of frames per second
haflfsize (int, optional) – Deafult is 5. The phase difference is fit to a plane centered on the zero frequency.
- Returns:
vxs (ndarray) – Array of velocities in x
vys (ndarray) – Array of velocities in y
errs (ndarray) – Mean error per pixel from the plane fit