deepof.utils.compute_dist

deepof.utils.compute_dist(pair_array: array, arena_abs: int = 1, arena_rel: int = 1) DataFrame

Return a pandas.DataFrame with the scaled distances between a pair of body parts.

Parameters:
  • pair_array (numpy.array) – np.array of shape N * 4 containing X, y positions over time for a given pair of body parts.

  • arena_abs (int) – Diameter of the real arena in cm.

  • arena_rel (int) – Diameter of the captured arena in pixels.

Returns:

pandas.DataFrame with the absolute distances between a pair of body parts.

Return type:

result (pd.DataFrame)