Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

triangulation

The triangulation API reconstructs 3D landmarks from multiple camera measurements. TriangulationParameters configures robust validity checks, while TriangulationResult distinguishes a valid point from geometric failure modes.

Open In Colab

A two-view track

Build two calibrated cameras, project a known point, and place the cameras in a matching CameraSet. Real applications supply measured pixels rather than generating them this way.

TriangulationParameters

The parameters control rank tolerance, EPI correction, maximum landmark distance, dynamic outlier rejection, the LOST algorithm, and an optional measurement noise model. Negative distance/outlier thresholds disable those checks.

TriangulationResult

triangulateSafe() returns a result rather than throwing for common geometric failures. Test valid() before calling get(). The predicates degenerate(), outlier(), farPoint(), and behindCamera() explain invalid results.

Other triangulation entry points

triangulatePoint3() performs linear triangulation with optional nonlinear refinement, while triangulateNonlinear() refines an initial point. Overloads accept shared calibrations, camera sets with individual calibrations, spherical cameras, and batches of tracks.

Source

triangulation.h

AI assistance caveat

AI was used to help draft this documentation, and inaccuracies could be present.