DriftCapture · function

triangulate

The points behind count correspondences, in the first camera's frame, into out (3 each), and how many landed in front of both cameras. A point that did not is left at zero.

Explained in DriftCapture.

function triangulate(a: Float64Array, b: Float64Array, count: number, intrinsics: readonly [number, number, number, number], rotation: Float64Array, translation: Float64Array, out: Float64Array): number
import { triangulate } from '@driftengine/capture';

Parameters

ParameterTypeDescription
aFloat64Array
bFloat64Array
countnumber
intrinsicsreadonly [number, number, number, number]
rotationFloat64Array
translationFloat64Array
outFloat64Array