MATLAB#
Todo
how does this relate to the processing pipeline described in the index?
Get an example of
s1and document it
Code from the wehr-lab/Behavior repository.
Starting with CalculateMetricsSky.m for reference
Inputs#
conversion- cm/px conversion factor from pixels to centimtersVideoFS- frame rate of cameras1- from Nick’s specific loading function
Processing Stages#
Individual Animal#
For the mouse and cricket…
GetMidpointsGetDistanceGetAngVelAclGetSpdVelAclGetPolarSpdVelAcl
Combined Mouse & Cricket#
GetDistanceGetAngVelAcl
Clip Values#
ClipMetricNaNfor each of the intermediate values
Output#
One matlab struct with fields
MusThigmoCrickThigmoCrangeMusThetaCrickThetavMusBearingAzimuthMCangleMusSpeedCrickSpeedMusVCrickVMusVpCrickVp