realtime-radial

Source: realtime-radial.js:9

A compact distribution of descriptor change. Absolute deltas are ranked, then reduced into 16 RMS bands. The spokes are magnitudes, not stable latent coordinates or facial regions.


Static Methods

rankedDeltaBands( values: Float32Array | Array.<number>, bandCount?: number, ): Array.<number>

Sorts absolute descriptor deltas and reduces them to equal-sized RMS bands. Ranking makes the plot legible while deliberately discarding coordinate identity: it compares the distribution of change, not where change lives.

Parameters

  • values (Float32Array | Array.<number>) — Descriptor deltas.
  • bandCount (number, optional, default: 16) — Number of ranked bands.

Returns

  • Array.<number> — Ascending RMS magnitudes.

radialPoints( values: Float32Array | Array.<number>, options?: object, ): Array.<{x: number, y: number, value: number, index: number}>

Converts descriptor deltas to radial points.

Parameters

  • values (Float32Array | Array.<number>) — Signed descriptor deltas.
  • options (object, optional) — Geometry and scale.
    • options.centerX (number, optional, default: 0) — Plot centre x.
    • options.centerY (number, optional, default: 0) — Plot centre y.
    • options.radius (number, optional, default: 1) — Maximum radius.
    • options.maxValue (number, optional, default: 0.15) — Delta mapped to the outer ring.

Returns

  • Array.<{x: number, y: number, value: number, index: number}> — Points in descriptor order.

createRadialGraph(options: object): object

Creates the live/snapshot radial descriptor plot.

Parameters

  • options (object) — Controller options.
    • options.canvasEl (HTMLCanvasElement) — Plot canvas.
    • options.maxDelta (number, optional, default: 0.15) — Delta mapped to the outer ring.

Returns

  • object — Plot controller.