← back to roto on ba3a.dev

ContactFinder

Where in its repeat a figure's feet strike the ground: the contact pose, legs spread widest. The spread is measured in the bottom band of each mask — its horizontal extent there — and averaged over every frame at the same phase of the repeat, so one noisy frame cannot move the contact.

Functions

Link copied to clipboard
fun contacts(masks: List<Mask>, repeat: Int, band: Double): List<Int>

Every contact frame of masks, which repeat every repeat frames: one per repeat.

Link copied to clipboard
fun legSpread(mask: Mask, band: Double): Int

How wide the legs spread in mask's bottom band of its own height; 0 for an empty mask.