myimagelib.corrLib.df2

myimagelib.corrLib.df2(imgstack, size_min=5, step=250, method='linear')

This is used for small scale test of temporal variation based density fluctuation analysis. Here the input is a 3 dimensional array that contains all the images in a video [stack_index, height, width]. For larger scale application, use the script df2.py or a later implementation of df2 which can take directory as argument 1.

Parameters
  • imgstack – 3-D array with dimensions [stack_index, height, width]

  • size_min – minimal box size to sample

  • step – distance between adjacent boxes in a frame

  • method – use pixel intensity directly as concentration (‘linear’), or use the log of it (‘log’)

Returns

the spatial average of temporal variations