LMT Events Documentation - fdechaumont/micecraft GitHub Wiki
Those events are computed by the LMT software, not afterwards by a BuildEvent python code.
For this event, speed at frame
$v \leq 0.17 \enspace px/frame$ -
$v \leq 5 \enspace px/s$ .
Code example in Python
speed[f] = pos.mass(f+3) - pos.mass(f-3)
if speed[f] < 1:
# create event "Stop" at frame f[MASS point of one animal is moving toward another animal's MASS point thatis stopped or moving less fast (not rebuild)],
"Approach contact": [Equivalent to an Approach that ens with a Contact. The approach needs to be longer than 3 frames (0.1 s). This event ends at the frame just before the Contact event and lasts the whole time of the Approach event.],
"Approach rear": [Equivalent to a "Social approach" towards an animal that have a Rearing event at the end of the approach.],
"Center Zone": [MASS point is in center zone:
"Periphery Zone": [Opposite of center zone, so if MASS point is not in center zone, it is in periphery zone],
"Detection": [Each line in the DETECTION table of the SQLite database where ANIMALID is the corresponding one. Correspond to an existing mask in LMT.],
"Break contact": "Two animals that were in contact are no longer in contact (distance between their borders is higher than MAX_DISTANCE_CONTACT_THRESHOLD (= 30 pixels for mice ~ 5 cm))",
"Oral-oral Contact": "The distance bewteen FRONT detection (head) of both animals must be smaller than MAX_DISTANCE_HEAD_HEAD_GENITAL_THRESHOLD (= 15 pixels for mice ~ 2.5 cm)",