← back to roto on ba3a.dev

RootFinder

object RootFinder

The root of one mask: the median x of its foreground in the hip band. The band is measured on the mask's own height, so it follows the figure as it bobs. An arm swinging at hip height pulls the median by a pixel or so, where it would drag the mean or the band's extent most of the way out to the hand.

Functions

Link copied to clipboard
fun rootX(mask: Mask, settings: RootSettings): Double?

The root x of mask, or null when it holds no figure.