myimagelib.corrLib.div_field

myimagelib.corrLib.div_field(img, pivData, winsize, step)

Compute multiple divergence fields from PIV data and microscopy image.

Parameters
  • img – 2d array

  • pivData – DataFrame with columns (x, y, u, v)

  • winsize – window size of PIV data

  • step – step size of PIV data

Note

winsize and step should be consistent with the parameters of pivData, be extra coutious!

Returns

divergence fields of given data. (c, v, divcn, divcv, divv). c is concentration inferred from the image.