pyfim.analysis.head_bends

pyfim.analysis.head_bends(exp)

Calculates the head bend frequency [Hz] for each object. This analysis is based on MatLab code by Dimitri Berh (University of Muenster, Germany).

Parameters:exp (pyfim.Experiment) – Experiment holding the raw data.

Notes

This function determines the number of head bends by (1) taking all bending angles, (2) thresholding them and (3) counting the number of bending phases of a given minimum length. You can finetune this behaviour using the following parameters in the config file:

  • BENDING_ANGLE_THRESHOLD: minimum bending angle
  • MIN_BENDED_PHASE: minimum consecutive number of frames above angle threshold
Returns:Mean head bending frequencies [Hz]
Return type:pandas.DataFrame