Among the previous methods used for pig locomotion
monitoring, the moving pixels calculation method used in
eYeNamic tool was the most successful (Leroy et al.,2006).
This tool calculates the difference in image intensity
between consecutive frames. From this difference image,
the binary “locomotion image” Ia (x, y, t) is derived,
containing the pixels for which the intensity change exceeded a
certain threshold.