← back to roto on ba3a.dev

FrameBoxLayout

Lays the canvas over every frame of a clip: scaled by the profile's ScaleSettings, centred across on each frame's root from the RootTrack, and with the canvas's ground row on the clip's ground line. A clip whose figure walks toward or away from the camera, per its DepthSettings, takes its scale and ground line from the figure in each frame instead.

Functions

Link copied to clipboard
fun groundY(masks: List<Mask>): Int

The row a clip's feet stand on: the median of each frame's lowest foreground row. While walking one foot is nearly always down, and the median ignores the few frames where both are up, or where a shadow survived masking under one of them.

Link copied to clipboard
fun of(masks: List<Mask>, track: RootTrack, scale: ScaleSettings, canvas: Canvas, depth: DepthSettings = DepthSettings()): FrameBoxes

The FrameBoxes of a clip's masks with its root track, at scale, on the project's canvas, with the figure kept one size as depth says.