← back to roto on ba3a.dev

RootSettings

@Serializable
data class RootSettings(val stabilise: Boolean = true, val hipBandTop: Double = 0.45, val hipBandBottom: Double = 0.6, val smoothing: Int = 7)

How a clip's root — the point the figure stands on, horizontally — is found and held still; stored per clip in profile.json.

  • hipBandTop and hipBandBottom bound the hip band, as fractions of the figure's own height from the top of its mask. The root is the median x of the mask inside the band.

  • smoothing is the moving-average window, in frames, odd; 1 turns smoothing off.

  • stabilise shifts every frame so the smoothed root stays put: for a walk across the frame. Off, for a clip performed on the spot, the frames are left where they were filmed.

Constructors

Link copied to clipboard
constructor(stabilise: Boolean = true, hipBandTop: Double = 0.45, hipBandBottom: Double = 0.6, smoothing: Int = 7)

Properties

Link copied to clipboard

the bottom of the hip band, as a fraction of the figure's height

Link copied to clipboard

the top of the hip band, as a fraction of the figure's height

Link copied to clipboard

the moving-average window in frames, odd, 1..31

Link copied to clipboard

whether to shift frames so the smoothed root stays put