← back to roto on ba3a.dev

ModelMeasure

Measures a model's geometry from its frames' alpha. A pixel with alpha of at least FIGURE_ALPHA is figure. The clip's top and feet rows are the medians of its figure frames' own (the lower median of an even count), so one stray frame does not move them; the body height is the span between them. Integer arithmetic only, except the hip band that RootFinder already defines.

Functions

Link copied to clipboard
fun colours(frames: List<Raster>, rampSet: RampSet): ModelColours

Maps the colours the figure pixels of frames use to their ramp and step in rampSet.

Link copied to clipboard

Measures every frame of frames and the clip as a whole.

Link copied to clipboard

Measures one frame.