DriftCapture · function
liftMasks
Masks from several views lifted onto the mesh, by what most of the views that saw a triangle say.
Explained in DriftCapture.
function liftMasks(views: readonly MaskView[], mesh: MeshData, labels: readonly string[]): Region[]import { liftMasks } from '@driftengine/capture';Parameters
| Parameter | Type | Description |
|---|---|---|
views | readonly MaskView[] | |
mesh | MeshData | |
labels | readonly string[] |
In depth
Voting rather than taking the best view, because a mask boundary is where a model is least sure and every view puts it somewhere slightly different. A triangle no view claimed is left unassigned rather than given to its neighbour, which is what keeps an unlabelled region unlabelled.