[CV] 6. Triangulation

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/39

encourage image

There's no tags or description

Looks like no tags are added yet.

40 Terms

1
New cards

What is triangulation and where does it fit in the Multi-View Geometry pipeline?

Triangulation: Process of recovering a 3D point X from matching 2D image points observed by two or more cameras

The complete pipeline:

  1. Feature matching(Lecture 3) → Find corresponding pixels

  2. Camera calibration(Lecture 4) → Obtain camera parameters K,R,T

  3. Epipolar geometry(Lecture 5) → Establish the geometric relationship between corresponding pixels and cameras

  4. Triangulation(Lecture 6) → Recover the actual 3D point X

Previous lectures prepared the camera geometry and correspondences;Triangulation use them to reconstruct 3D structure


<p>Triangulation: Process of recovering a 3D point X from matching 2D image points observed by two or more cameras </p><p>The complete pipeline:</p><ol><li><p>Feature matching(Lecture 3) → Find corresponding pixels</p></li><li><p>Camera calibration(Lecture 4) → Obtain camera parameters K,R,T</p></li><li><p>Epipolar geometry(Lecture 5) → Establish the geometric relationship between corresponding pixels and cameras </p></li><li><p>Triangulation(Lecture 6) → Recover the actual 3D point X </p></li></ol><p>Previous lectures prepared the camera geometry and correspondences;Triangulation use them to reconstruct 3D structure </p><p></p>
2
New cards

What information is required for triangulation and what is it goal?

Known:

  • 2D correspondences x,x’x,x’ from two or more images

  • Camera intrinsics K

  • Camera extrinsics R,T

Unknown:

  • 3-D point X that produced those observations

The camera projection relationship is:

xx ~ K[R∣T]XK[R|T]X

~ means equal up to a scale factor, because homogeneous coordinates are used

Goal: Find the single 3-D points that best explains the observed pixels across all cameras

<p>Known:</p><ul><li><p>2D correspondences $$x,x’$$ from two or more images</p></li><li><p>Camera intrinsics K</p></li><li><p>Camera extrinsics R,T</p></li></ul><p>Unknown:</p><ul><li><p>3-D point X that produced those observations</p></li></ul><p>The camera projection relationship is:</p><p>$$x$$ ~ $$K[R|T]X$$ </p><p>~ means equal up to a scale factor, because homogeneous coordinates are used </p><p>Goal: Find the single 3-D points that best explains the observed pixels across all cameras </p>
3
New cards
<p>Why can’t we recover a unique 3-D point from a single image?</p>

Why can’t we recover a unique 3-D point from a single image?

A single 2-D pixel x correspond to an entire 3-D viewing ray, not one specific point

For canonical camera:

*form in pict

λ\lambda represents an unknow depth-related scale

  • The point could be 1 m or 100 m away and still a project to the same pixel

  • Therefore, one image cannot determine the exact 3-D depth


<p>A single 2-D pixel x correspond to an entire 3-D viewing ray, not one specific point</p><p>For canonical camera:</p><p>*form in pict</p><p>$$\lambda$$ represents an unknow depth-related scale</p><ul><li><p>The point could be 1 m or 100 m away and still a project to the same pixel</p></li><li><p>Therefore, one image cannot determine the exact 3-D depth</p></li></ul><p></p>
4
New cards

How do 2 views allow us to recover a 3-D point?

Each camera produces a 3D ray passing through its observed pixel

  • Camera 1 produces array through xx

  • Camera 2 produces another ray through x’x’

With perfect calibration and measurements, the rays intersect at the true 3-D point X

→ 2 views resolve the depth ambiguity that exists in a single view


<p>Each camera produces a 3D ray passing through its observed pixel</p><ul><li><p>Camera 1 produces array through $$x$$</p></li><li><p>Camera 2 produces another ray through $$x’$$</p></li></ul><p>With perfect calibration and measurements, the rays intersect at the true 3-D point X </p><p>→ 2 views resolve the depth ambiguity that exists in a single view</p><p></p>
5
New cards

Why don’t two viewing a rays usually intersect exactly in practice?

Real measurements contain noise, including:

  • Feature-detection errors

  • Pixel quantisation

  • Residual lens distortion

  • Small calibration errors

Consequently, the rays may pass close to each other without interacting exactly

→ Instead of finding a perfect intersection, triangulation estimates the 3D points that best fits the observations using least squares


6
New cards
<p>What does the two-view triangulation diagram on slide 8 illustrate?</p>

What does the two-view triangulation diagram on slide 8 illustrate?

The diagram shows two cameras CC and C’C’ observing the same 3-D point through pixels xx and x’x’

  • The two viewing rays approach each other, but due to noise, they do not necessarily intersect at one exact point

  • The task is to estimate the most likely 3-D position that agrees with both observations

  • Remember: Triangulation is an estimation problem, not always an exact geometry intersection


<p>The diagram shows two cameras $$C$$ and $$C’$$ observing the same 3-D point through pixels $$x$$ and $$x’$$ </p><ul><li><p>The two viewing rays approach each other, but due to noise, they do not necessarily intersect at one exact point </p></li><li><p>The task is to estimate the most likely 3-D position that agrees with both observations </p></li><li><p>Remember: Triangulation is an estimation problem, not always an exact geometry intersection </p></li></ul><p></p>
7
New cards

What is scale ambiguity in triangulation?

Scale ambiguity means we can reconstruct the scene’s relative 3D shape, but not necessarily it’s absolute size

  • If camera positions are known only up to a common scale, the reconstructed 3D points also inherit that scale ambiguity

  • If the cameras’ relative positions are known in real-world units, triangulation can recover metric 3D coordinates

  • Important: The unknown homogeneous scale factor in the projection equation is related to (but not identical to) the global kill ambiguity of reconstruction


8
New cards

Why can’t we directly solve the camera projection equation for X?

The projection equation is:

λ x=K[R∣T]X\lambda\ x=K[R|T]X

The problem is the unknown scale factor λ\lambda

  • The equation tells us the direction of the 3-D point, but not it exact depth

  • A single pixel can represent many 3-D points along the same ray

  • Therefore we cannot simply rearrange the equation to find one unique X

  • Solution: Use the cross-product trick to remove λ,\lambda, then combine information from multiple views


9
New cards

What is the cross-product trick, and why is it used in triangulation?

Cross-product trick: removes the unknown scale factor from the projection equation

Two vectors pointing in the same direction have a cross product of zero

Therefore: xx x (PX)=0(PX)=0

where P=K[R∣T]P=K[R|T]

Why useful?

  • It removes the unknown λ\lambda

  • It produces linear equations involving X

  • This equations can be solved using DLT and SVD


10
New cards

How many independent equations does each camera view contribute?

Each camera view give 2 independent linear equations

  • Although the cross product produces 3 equations, one is redundant

  • Why important? Two suitable views provide enough information to estimate the 3D point X


<p>Each camera view give 2 independent linear equations </p><ul><li><p>Although the cross product produces 3 equations, one is redundant</p></li><li><p>Why important? Two suitable views provide enough information to estimate the 3D point X </p></li></ul><p></p>
11
New cards

How are the DLT triangulation equations derived?

knowt flashcard image
12
New cards

How does DLT triangulation use SVD to recover the 3-D point?

The process has five steps:

  1. Use the cross product to remove the unknown scale

  2. Collect the linear equations from all camera views into: AX=0AX=0

  3. Apply Singular Value Decomposition(SVD): *form in pict

  4. Choose the last column of V, corresponding to the smallest singular value

  5. Dehomogenise by dividing by the last coordinate:

    X=(X1/X4,X2/X4,X3/X4)X=(X_1/X_4 , X_2/X_4 , X_3/X_4)

Result: The estimated 3-D point X the best fits the linear equations from all views

<p>The process has five steps:</p><ol><li><p>Use the cross product to remove the unknown scale </p></li><li><p>Collect the linear equations from all camera views into: $$AX=0$$</p></li><li><p>Apply Singular Value Decomposition(SVD): *form in pict</p></li><li><p>Choose the last column of V, corresponding to the smallest singular value </p></li><li><p>Dehomogenise by dividing by the last coordinate:</p><p>$$X=(X_1/X_4 , X_2/X_4 , X_3/X_4)$$ </p></li></ol><p>Result: The estimated 3-D point X the best fits the linear equations from all views </p>
13
New cards

What does the worked triangulation example on slide 13 demonstrate?

Two cameras observed the same 3-D point:

  • Camera 1: (-1,0,0)m

  • Camera 2: (1,0,0)m

  • True 3-D point: (0,0,5)m

With perfect measurements, the two viewing rays intersect exactly at:

X=(0,0,5)

DLT + SVD recovers this point

With noisy measurements, the estimated point will be close to the true position, but not necessarily exact

Lesson:Triangulation accuracy depends on both measurements, noise, and camera positions


<p>Two cameras observed the same 3-D point:</p><ul><li><p>Camera 1: (-1,0,0)m</p></li><li><p>Camera 2: (1,0,0)m</p></li><li><p>True 3-D point: (0,0,5)m</p></li></ul><p>With perfect measurements, the two viewing rays intersect exactly at:</p><p>X=(0,0,5)</p><p>DLT + SVD recovers this point</p><p>With noisy measurements, the estimated point will be close to the true position, but not necessarily exact</p><p>Lesson:Triangulation accuracy depends on both measurements, noise, and camera positions </p><p></p>
14
New cards

How is DLT used differently in camera calibration and triangulation?

Both methods use DLT + SVD, but they solve for different unknowns

  • same mathematical flow:

Projection equation → Remove scale → Built linear system → Solve using SVD


<p>Both methods use DLT + SVD, but they solve for different unknowns </p><ul><li><p>same mathematical flow:</p></li></ul><p>Projection equation → Remove scale → Built linear system → Solve using SVD </p><p></p>
15
New cards

Can triangulation use more than two views and why is it beneficial?

Yes. We can try and unit a point using N views, not just 2

  • Each additional view contributes two equations:

    AX=0AX=0

  • Therefore, N views provide 2N equations

  • Benefits:

    • More observations help reduce the effect of pixel noise

    • The estimated 3-D points becomes more reliable

    • The result is generally more accurate when the camera views provide useful geometric information

  • Remember: More good views usually improve triangulation


16
New cards

What are the three main situations where triangulation becomes unreliable?

Triangulation becomes unreliable when the viewing rays do not provide enough information to estimate depth accurately

  1. Zero or near-zero baseline

    • The cameras are at almost the same position

    • Their rays provide little new depth information

  2. Point near or on the baseline

    • The 3-D point is close to the line connecting both cameras

    • Small pixel errors can cause large errors in its estimated position

  3. Point near Infinity

    • The point is very far away

    • The rays become almost parallel

    • Small measurement errors cause large depth errors

Key idea: poor camera geometry makes triangulation sensitive to noise, even if the equation can be solved


17
New cards

How does the baseline affect triangulation accuracy?

The baseline is the distance between the two camera centres

  1. Narrow baseline:

    • Rays intersect at a small angle

    • Depth is difficult to estimate

    • Small pixel errors can cause large death errors

  2. Wide baseline:

    • Rays intersect at a larger angle

    • Depth is easier to estimate accurately

    • The result is generally more stable

→ A wider baseline usually improve depth accuracy, as long as the images still have reliable matching points


<p>The baseline is the distance between the two camera centres </p><ol><li><p>Narrow baseline:</p><ul><li><p>Rays intersect at a small angle</p></li><li><p>Depth is difficult to estimate</p></li><li><p>Small pixel errors can cause large death errors </p></li></ul></li><li><p>Wide baseline:</p><ul><li><p>Rays intersect at a larger angle</p></li><li><p>Depth is easier to estimate accurately</p></li><li><p>The result is generally more stable</p></li></ul></li></ol><p>→ A wider baseline usually improve depth accuracy, as long as the images still have reliable matching points </p><p></p>
18
New cards

Why does a small intersection angle make triangulation sensitive to noise?

When two ways are almost parallel, even a small change in their directions can move the estimated intersection a long distance

→ These causes a large depth error

  • When rays intersect at a larger angle, the estimated intersection changes less for the same pixel error

  • Larger intersection angles generally make triangulation more stable


19
New cards

What is bundle adjustment and why is it needed after triangulation?

Bundle Adjustment(BA) : Method that improves the estimated 3-D points and camera parameters together

Why needed?

  • Linear triangulation estimates one point at a time

  • It assumes the camera parameters are fixed and correct

  • In reality, both the points and camera parameters contain errors

BA adjust them together to reduce the total reprojection error

→ Triangulation estimates; Bundle adjustment refines


20
New cards

What is the main goal and mathematical objective of BA?

BA tries to make the predicted pixels match the observed pixels as closely as possible

*form in pict

Process:

  1. Project the estimated 3-D points into the images

  2. Comparing the predicted and observed pixels

  3. Adjust the points and cameras to reduce the differences

Goal: Minimise the total squared reprojection error


<p>BA tries to make the predicted pixels match the observed pixels as closely as possible </p><p>*form in pict</p><p>Process:</p><ol><li><p>Project the estimated 3-D points into the images</p></li><li><p>Comparing the predicted and observed pixels</p></li><li><p>Adjust the points and cameras to reduce the differences</p></li></ol><p>Goal: Minimise the total squared reprojection error </p><p></p>
21
New cards

Why do we perform linear triangulation before BA?

BA is a non-linear, non-convex optimisation problem

  • This means it needs a good starting estimate

  • Otherwise, it may get stuck in a poor local minimum

  • Linear triangulation:

    • Use DLT+ SVD

    • Quickly estimates the initial 3-D points

  • Bundle adjustment:

    • Starts from those estimates

    • Gradually improves the points and camera parameters

  • Linear triangulation provide the starting point for BA


22
New cards

What is reprojection error and how is it used in bundle adjustment?

Reprojection error measures the difference between:

  • The actual observed pixel and

  • The predicted pixel obtained by projecting the estimated 3-D point

e=p−π(X,K,R,T)e=p-\pi (X,K,R,T)

Example:

If a point is observed at pixel (100,100), But the camera model predicts (103,102), There is a reprojection error

→ BA adjust the 3-D points and camera parameters to make these errors as small as possible across all images

23
New cards

Why is bundle adjustment a non-linear and non-convex optimisation problem?

BA is nonlinear because camera projection involves:

  • Rotations

  • Perspective division by depth

This operations prevent us from solving the problem directly using one SVT step

BA is also non-convex, meaning there may be multiple local minima

A solver might find a solution that looks good nearby, but it’s not the best overall solution

→ Therefore, BA requires a good initialisation and iterative optimisation


24
New cards

What is Levenberg–Marquardt (LM), and why is it used in BA?

Levenberg–Marquardt (LM) is an algorithm used to solve non-linear least squares problems

  • It repeatedly updates the camera parameters in 3-D points to reduce reprojection error

It combines two behaviours:

  • Gradient-decent-like steps: More cautious when far from the solution

  • Gauss-Newton-like steps: Faster when close to the solution

Why useful? LM can be more stable than Gauss-Newton alone when the initial estimate is imperfect


25
New cards

How can BA handle thousands of 3-D points and hundreds of cameras?

BA uses a sparse Jacobian matrix to reduce computation

Why sparse?

  • Each 3-D point is usually visible in only a few cameras

  • Most camera-point combinations have no observation

  • Therefore, many entries in the Jacobian are zero

Instead of processing every possible combination, BA solvers focus on the non-zero entries

Example of solvers include Ceres and g2o

→ Sparsity makes large-scale bundle adjustment practical


<p>BA uses a sparse Jacobian matrix to reduce computation </p><p>Why sparse?</p><ul><li><p>Each 3-D point is usually visible in only a few cameras</p></li><li><p>Most camera-point combinations have no observation </p></li><li><p>Therefore, many entries in the Jacobian are zero</p></li></ul><p>Instead of processing every possible combination, BA solvers focus on the non-zero entries </p><p>Example of solvers include Ceres and g2o</p><p>→ Sparsity makes large-scale bundle adjustment practical </p><p></p>
26
New cards

What is the difference between linear triangulation and bundle adjustment?

Remember: Linear triangulation gives the initial reconstruction; BA makes it more accurate and consistent

<p>Remember: Linear triangulation gives the initial reconstruction; BA makes it more accurate and consistent </p>
27
New cards

Why are incorrect correspondences a problem for triangulation and bundle adjustment?

Incorrect correspondence are called outliers

  • They happen when two pixels are matched even though they represent different 3-D points

  • Common causes:

    • Repetitive textures

    • Occlusions

    • Similar looking features

  • Why problematic?

    • Both DLT and BA try to fit the given observations

    • Incorrect matches can pull the estimated 3-D points or camera parameters away from the correct values

  • Solution: Use RANSAC to reject outliers before reconstruction or refinement


28
New cards

What is RANSAC and how does it work?

RANSAC (RANdom SAmple Consensus) : Find a model even when some observations are incorrect

Steps:

  1. Randomly select the minimum number of observations

  2. Fit a model using that sample

  3. Count the inliers that agree with the model

  4. Repeat using different random samples

  5. Choose the model with the most inliers

→ A correct model should agree with many observations; Incorrect model usually agrees with only a few


29
New cards

What does the RANSAC line-fitting example demonstrate?

Imagine several points, that some do not belong to the main line

RANSAC works as follows:

  1. Randomly choose two points

  2. Draw a line through them

  3. Count how many other points are close to the line

  4. Repeat with different pairs

  5. Keep the line supported by the most points

Lesson: RANSAC can find the correct line even when the dataset contains outliers


<p>Imagine several points, that some do not belong to the main line </p><p>RANSAC works as follows:</p><ol><li><p>Randomly choose two points</p></li><li><p>Draw a line through them</p></li><li><p>Count how many other points are close to the line</p></li><li><p>Repeat with different pairs</p></li><li><p>Keep the line supported by the most points</p></li></ol><p>Lesson: RANSAC can find the correct line even when the dataset contains outliers </p><p></p>
30
New cards

What is the minimal sample size s in RANSAC and how does it differ by model?

The minimal sample size (s) is the smallest number of observations needed to estimate the model

Why important? Smaller samples have a higher chance of containing only inliers, so RANSAC may need a fewer trials

<p>The minimal sample size (s) is the smallest number of observations needed to estimate the model </p><p>Why important? Smaller samples have a higher chance of containing only inliers, so RANSAC may need a fewer trials </p>
31
New cards

How is the required number of RANSAC trials calculated?

The number of trials depends on how many outliers we expect and how confident we want to be

*form in pict

Remember:

  • More outliers → More trials

  • Larger samples → More trials

  • Higher confidence → More trials

In practice, round N up to the next whole number


<p>The number of trials depends on how many outliers we expect and how confident we want to be </p><p>*form in pict</p><p>Remember:</p><ul><li><p>More outliers → More trials</p></li><li><p>Larger samples → More trials</p></li><li><p>Higher confidence → More trials</p></li></ul><p>In practice, round N up to the next whole number</p><p></p>
32
New cards

How does the outlier ratio affect the number of RANSAC trials?

The lecture assumes 99% confidence and s=2

  • meaning: With 10% outliers, about 3 trials are enough

    , With 70% outliers, about 49 trials are needed

  • More incorrect data means RANSAC must try more samples to find a clean one


<p>The lecture assumes 99% confidence and s=2</p><ul><li><p> meaning: With 10% outliers, about 3 trials are enough </p><p>, With 70% outliers, about 49 trials are needed </p></li><li><p>More incorrect data means RANSAC must try more samples to find a clean one </p></li></ul><p></p>
33
New cards

How does RANSAC decide whether an observation is an inlier?

RANSEC check how far an observation is from the estimated motel

  • Small error: Classified as an inlier

  • Large error: Classified as an outlier

t2=3.84σ2t²=3.84\sigma²

where:

  • tt: Error threshold

  • σ\sigma: Standard deviation of measurement noise

Under the slide’s assumed Gaussian error model, this threshold keeps about 95% of correct observations

→ The threshold decides which observations are considered reliable


34
New cards

How is RANSAC applied specifically to robust triangulation?

In multi-view triangulation, some image matches may be incorrect

Steps:

  1. Randomly select 2 views observing the same point

  2. Triangulate a candidate 3-D point using DLT + SVD

  3. Reproject that point into all available views

  4. Measure reprojection errors for each view

  5. Count inliers whose errors are below the threshold

  6. Repeat and keep the candidate with the most inliers

Result: A more reliable 3-D point because incorrect observations has less influence


35
New cards

What is the Huber loss and why is it useful?

Huber loss is a method for reducing the effect of large errors during optimisation

It behaves differently depending on the error size:

  • Small errors: Use squared error

  • Large errors: Grows linearly instead of quadratically

Why useful?

With ordinary squared error, one very large error can dominate the optimisation

Huber loss reduces this effect, making bundle adjustment more robust to remaining outliers


36
New cards

What is the difference between RANSAC and robust lost functions?

RANSAC:

  • Use a hard threshold

  • Classifies observations as inliers or outliers

  • reject observations that do not fit the model

Robust loss(Huber):

  • Reduce the influence of large errors

  • Does not necessarily remove observations completely

  • Is commonly used during bundle adjustment

Typical workflow:

RANSAC → Bundle Adjustment with Huber loss

Remember: RANSAC filters bad matches; Robust loss reduces the effect of remaining errors


37
New cards

How do we calculate depth from a triangulated 3-D point?

After triangulation, we have 3-D points in world coordinates

  • First, convert it into camera coordinates:

    Xc=RXw+TX_c=RX_w+T

    where:

    • XwX_w: Point in world coordinates

    • R,TR,T: Camera rotation and translation

    • XcX_c: Point in camera coordinates

  • Then, take the z-coordinate of XcX_c:

    Depth=ZcDepth=Z_c

  • Key idea: The camera-coordinate Z-value tells us the point’s depth


38
New cards

What is the complete classical 3-D reconstruction pipeline?

The complete process is:

  1. Feature matching: Find corresponding pixels across images

  2. Camera estimation: Obtain the camera parameters and relative geometry

  3. RANSAC: Reject incorrect correspondences

  4. Linear triangulation: Estimate 3-D points using DLT + SVD

  5. Bundle adjustment: Refine the 3-D points and camera parameters together

  6. Depth estimation: Read the Z-coordinate of each point in the camera coordinate system

Remember:

Match → Estimate cameras → Remove outliers → Triangulate → Refine → Recover depth


39
New cards

What are VGGSfM, DUSt3R, and MASt3R, and how do they change classical triangulation?

These methods use deep learning to simplify or improve traditional 3D reconstruction.

1. VGGSfM (CVPR 2024)

  • Makes the SfM pipeline differentiable, so its stages can be trained together.

  • Uses a deep point tracker instead of traditional pairwise matching.

  • Estimates cameras jointly and performs triangulation and refinement in the same system.

2. DUSt3R (CVPR 2024)

  • Takes two uncalibrated images.

  • Directly predicts a dense 3D point map using a transformer.

  • Does not require explicit camera calibration, feature matching, or DLT triangulation beforehand.

3. MASt3R (ECCV 2024)

  • Builds on DUSt3R.

  • Adds dense, pixel-accurate matching.

  • MASt3R-SfM extends the approach to reconstruct scenes from many images.

Main difference: Classical methods solve geometry step by step, while learned methods can predict 3D structure directly or combine multiple stages into one trainable system.

40
New cards

What is VGGT, and how does it compare with classical SfM and earlier learned methods?

VGGT (CVPR 2025 Best Paper) is a transformer that reconstructs 3D information from one to hundreds of images.

In a single forward pass, it predicts:

  • Camera parameters

  • Depth maps

  • 3D point maps

  • Point tracks

Compared with DUSt3R and MASt3R:

  • Earlier methods mainly process image pairs.

  • VGGT processes many views together, avoiding a separate pairwise-alignment stage.

Compared with classical SfM:

  • Classical SfM uses separate matching, triangulation, and bundle adjustment stages.

  • VGGT predicts the reconstruction directly and can be much faster.

Important: Learned methods are fast, but classical geometric refinement can still improve their accuracy.