Root Finder
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.