corrLib

Functions for analyzing correlations in images / velocity fields. They were originally developed for the GNF project.

corrS(X, Y, U, V)

Compute the spatial autocorrelations of a velocity field.

divide_windows(img[, windowsize, step])

Divide an image into windows with specified size and step.

distance_corr(X, Y, C)

Convert 2d correlation matrix into 1d.

density_fluctuation(img_stack[, boxsize, ...])

Compute number fluctuations of an image stack (3D np.array, frame*h*w)

local_df(img_folder[, seg_length, winsize, step])

Compute local density fluctuations of given image sequence in img_folder

energy_spectrum(pivData[, d])

Compute energy spectrum (E vs k) from pivData.

autocorr1d(x, t)

Compute the temporal autocorrelation of a 1-D signal.