PIXELBANKv9.1.0
Menu

Find Epipole from Fundamental Matrix

Find the epipole as the intersection of epipolar lines.

The epipole is the point where all epipolar lines converge - it's the projection of one camera's center onto the other camera's image plane. Mathematically, the epipole e\mathbf{e} satisfies:

Fβ‹…e=0F \cdot \mathbf{e} = \mathbf{0}

This means e\mathbf{e} is in the null space of FF.

A practical approach is to find two epipolar lines (from different source points) and compute their intersection using the cross product:

e=l1Γ—l2\mathbf{e} = \mathbf{l}_1 \times \mathbf{l}_2

If the epipole is at infinity (parallel cameras), it indicates pure translation.

Example:

Input:
find_epipole([[0,0,-1],[0,0,0],[1,0,0]])
Output:
[0, 0]
Reasoning:

Finding epipole from F:

  1. Get epipolar line for point (0,0): l1 = F Γ— [0,0,1] = [-1, 0, 0]
  2. Get epipolar line for point (1,0): l2 = F Γ— [1,0,1] = [0, 0, 1]
  3. Cross product l1 Γ— l2 gives intersection in homogeneous coords
  4. Convert to Cartesian: epipole = [0, 0] This represents camera center projection at image origin.

Constraints:

  • F: 3x3 fundamental matrix
  • Return epipole [x, y] or None if at infinity
πŸ”’

Editor locked

The code editor is locked for Pro problems. It is only available for free problems. Please upgrade to gain access to the code editor for all problems.

solution.py

Test Results

0/0
Run code to see test results.