DriftCapture · interface

OptimiseOptions

Explained in DriftCapture.

interface OptimiseOptions
import type { OptimiseOptions } from '@driftengine/capture';

Properties

NameTypeDescription
intrinsicsreadonlyreadonly [number, number, number, number]fx, fy, cx, cy, shared by every frame, as the path was solved with.
widthreadonlynumber
heightreadonlynumber
seedsreadonlyFloat64ArrayThree per point: where the fit starts, usually the path's own sparse reconstruction.
budgetreadonlynumberThe most Gaussians the answer may carry.
iterationsreadonlynumber
randomreadonly() => numberThe engine's seeded generator: the same one twice gives the same capture.
initialScalereadonlyoptionalnumberThe standard deviation every Gaussian starts at, in metres.
More

Left out, it is the distance from each seed to its nearest neighbour — the spacing of the cloud, which is the size at which the seeds tile what they were sampled from. A cloud of one seed has no spacing, and is refused rather than given a number out of the air.

viewDependentreadonlyoptionalbooleanFit the degree-1 band as well as the constant term.
refineEveryreadonlyoptionalnumberHow often the cloud is grown and pruned.